Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.0][MIG] account_partner_reconcile #303

Merged
merged 15 commits into from
Apr 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
default_section=THIRDPARTY
known_third_party=setuptools
88 changes: 88 additions & 0 deletions account_partner_reconcile/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
=========================
Account Partner Reconcile
=========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/13.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-13-0/account-reconcile-13-0-account_partner_reconcile
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/98/13.0
:alt: Try me on Runbot

|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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_partner_reconcile%0Aversion:%2013.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 <[email protected]>
* Jaume Planas <[email protected]>

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/13.0/account_partner_reconcile>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_partner_reconcile/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions account_partner_reconcile/__manifest__.py
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": "13.0.1.0.0",
"category": "Accounting",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-reconcile",
"license": "AGPL-3",
"depends": ["account"],
"data": ["views/res_partner_view.xml"],
"installable": True,
}
30 changes: 30 additions & 0 deletions account_partner_reconcile/i18n/account_partner_reconcile.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_reconcile
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.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 ""

32 changes: 32 additions & 0 deletions account_partner_reconcile/i18n/es.po
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 <[email protected]>\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"
1 change: 1 addition & 0 deletions account_partner_reconcile/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_partner
27 changes: 27 additions & 0 deletions account_partner_reconcile/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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
reconcile_mode = self.env.context.get("reconcile_mode", False)
accounts = self.property_account_payable_id
if reconcile_mode == "customers":
accounts = self.property_account_receivable_id

action_context = {
"show_mode_selector": True,
"partner_ids": [self.id],
"mode": reconcile_mode,
"account_ids": accounts.ids,
}
return {
"type": "ir.actions.client",
"tag": "manual_reconciliation_view",
"context": action_context,
}
2 changes: 2 additions & 0 deletions account_partner_reconcile/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The button is visible only to users that belong to the accounting groups
"Accountant" or "Adviser".
2 changes: 2 additions & 0 deletions account_partner_reconcile/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Jordi Ballester <[email protected]>
* Jaume Planas <[email protected]>
2 changes: 2 additions & 0 deletions account_partner_reconcile/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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.
3 changes: 3 additions & 0 deletions account_partner_reconcile/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#. Enable 'Show Full Accounting Features'
#. Create a new Customer Invoice and Payment
#. Go to the Customer/Supplier view form and click on Match payments
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading