-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by etobella
- Loading branch information
Showing
23 changed files
with
936 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
========================= | ||
Account Partner Reconcile | ||
========================= | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:04ec889db4224fc1ffea939167adbe6aa397644b80650f08d6a3532f64fecc24 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github | ||
:target: https://github.com/OCA/account-reconcile/tree/16.0/account_partner_reconcile | ||
:alt: OCA/account-reconcile | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/account-reconcile-16-0/account-reconcile-16-0-account_partner_reconcile | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-reconcile&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module adds the buttons "Match Receivables" (& "Match Payables") in the customer (& suppliers) form | ||
view to allow to start the matching of invoices & payments for that partner. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
The button is visible only to users that belong to the accounting groups | ||
"Accountant" or "Adviser". | ||
|
||
Usage | ||
===== | ||
|
||
#. Enable 'Show Full Accounting Features' | ||
#. Create a new Customer Invoice and Payment | ||
#. Go to the Customer/Supplier view form and click on Match payments | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-reconcile/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_partner_reconcile%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* ForgeFlow | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Jordi Ballester <jordi.ballester@forgeflow.com> | ||
* Jaume Planas <jaume.planas@minorisa.net> | ||
* Ahmet Yiğit Budak <yigit@altinkaya.com> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/account-reconcile <https://github.com/OCA/account-reconcile/tree/16.0/account_partner_reconcile>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 2017-20 ForgeFlow S.L. (http://www.forgeflow.com) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Account Partner Reconcile", | ||
"version": "16.0.1.0.0", | ||
"category": "Accounting", | ||
"author": "ForgeFlow, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/account-reconcile", | ||
"license": "AGPL-3", | ||
"depends": ["account_reconcile_oca"], | ||
"data": ["views/res_partner_view.xml"], | ||
"installable": True, | ||
} |
29 changes: 29 additions & 0 deletions
29
account_partner_reconcile/i18n/account_partner_reconcile.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_partner_reconcile | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: account_partner_reconcile | ||
#: model:ir.model,name:account_partner_reconcile.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Payables" | ||
msgstr "" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Receivables" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_partner_reconcile | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2024-05-31 12:36+0000\n" | ||
"Last-Translator: Hans Henrik Gabelgaard <hhg@gabelgaard.org>\n" | ||
"Language-Team: none\n" | ||
"Language: da\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.17\n" | ||
|
||
#. module: account_partner_reconcile | ||
#: model:ir.model,name:account_partner_reconcile.model_res_partner | ||
msgid "Contact" | ||
msgstr "Kontakt" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Payables" | ||
msgstr "Udlign udbetalinger" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Receivables" | ||
msgstr "Udlign indbetalinger" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_partner_reconcile | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2020-01-01 21:13+0000\n" | ||
"Last-Translator: Daniel Luque <danielluque14@gmail.com>\n" | ||
"Language-Team: none\n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 3.10\n" | ||
|
||
#. module: account_partner_reconcile | ||
#: model:ir.model,name:account_partner_reconcile.model_res_partner | ||
msgid "Contact" | ||
msgstr "Contacto" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Payables" | ||
msgstr "Conciliar Pagos" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Receivables" | ||
msgstr "Conciliar Cobros" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_partner_reconcile | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-11-15 01:36+0000\n" | ||
"Last-Translator: Ignacio Buioli <ibuioli@gmail.com>\n" | ||
"Language-Team: none\n" | ||
"Language: es_AR\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: account_partner_reconcile | ||
#: model:ir.model,name:account_partner_reconcile.model_res_partner | ||
msgid "Contact" | ||
msgstr "Contacto" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Payables" | ||
msgstr "Igualar Cuentas a Pagar" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Receivables" | ||
msgstr "Igualar Cuentas a Cobrar" | ||
|
||
#~ msgid "Display Name" | ||
#~ msgstr "Mostrar Nombre" | ||
|
||
#~ msgid "ID" | ||
#~ msgstr "ID" | ||
|
||
#~ msgid "Last Modified on" | ||
#~ msgstr "Última modificación en" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_partner_reconcile | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-11-10 20:35+0000\n" | ||
"Last-Translator: Yves Le Doeuff <yld@alliasys.fr>\n" | ||
"Language-Team: none\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n > 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: account_partner_reconcile | ||
#: model:ir.model,name:account_partner_reconcile.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Payables" | ||
msgstr "Lettrage Fournisseur" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Receivables" | ||
msgstr "Lettrage Client" | ||
|
||
#~ msgid "Display Name" | ||
#~ msgstr "Nom affiché" | ||
|
||
#~ msgid "Last Modified on" | ||
#~ msgstr "Dernière modification le" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_partner_reconcile | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-11-10 20:35+0000\n" | ||
"Last-Translator: Yves Le Doeuff <yld@alliasys.fr>\n" | ||
"Language-Team: none\n" | ||
"Language: fr_FR\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n > 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: account_partner_reconcile | ||
#: model:ir.model,name:account_partner_reconcile.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Payables" | ||
msgstr "Lettrage Fournisseur" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Receivables" | ||
msgstr "Lettrage Client" | ||
|
||
#~ msgid "Display Name" | ||
#~ msgstr "Nom affiché" | ||
|
||
#~ msgid "Last Modified on" | ||
#~ msgstr "Dernière modification le" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_partner_reconcile | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-10-29 21:35+0000\n" | ||
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>\n" | ||
"Language-Team: none\n" | ||
"Language: pt\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n > 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: account_partner_reconcile | ||
#: model:ir.model,name:account_partner_reconcile.model_res_partner | ||
msgid "Contact" | ||
msgstr "Contacto" | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Payables" | ||
msgstr "Reconc. Pagam." | ||
|
||
#. module: account_partner_reconcile | ||
#: model_terms:ir.ui.view,arch_db:account_partner_reconcile.res_partner_view_buttons | ||
msgid "Match Receivables" | ||
msgstr "Reconc. Recebim." | ||
|
||
#~ msgid "Display Name" | ||
#~ msgstr "Nome a Exibir" | ||
|
||
#~ msgid "ID" | ||
#~ msgstr "ID" | ||
|
||
#~ msgid "Last Modified on" | ||
#~ msgstr "Última Modific. em" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import res_partner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2017-20 ForgeFlow S.L. (http://www.forgeflow.com) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import models | ||
|
||
|
||
class ResPartner(models.Model): | ||
_inherit = "res.partner" | ||
|
||
def action_open_reconcile(self): | ||
# Open reconciliation view for customers and suppliers | ||
self.ensure_one() | ||
|
||
reconcile_mode = self.env.context.get("reconcile_mode", False) | ||
account = self.property_account_payable_id | ||
if reconcile_mode == "customers": | ||
account = self.property_account_receivable_id | ||
|
||
action = self.env["ir.actions.act_window"]._for_xml_id( | ||
"account_reconcile_oca.account_account_reconcile_act_window" | ||
) | ||
|
||
action["domain"] = [ | ||
("account_id", "=", account.id), | ||
("partner_id", "=", self.id), | ||
] | ||
|
||
return action |
Oops, something went wrong.