diff --git a/account_mass_reconcile/README.rst b/account_mass_reconcile/README.rst index 3f3f077d..3e74b07c 100644 --- a/account_mass_reconcile/README.rst +++ b/account_mass_reconcile/README.rst @@ -1,38 +1,35 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 -============== -Mass Reconcile -============== +====================== +Account Mass Reconcile +====================== This is a shared work between Akretion and Camptocamp in order to provide: -- reconciliation facilities for big volume of transactions -- setup different profiles of reconciliation by account -- each profile can use many methods of reconciliation -- this module is also a base to create others -reconciliation methods which can plug in the profiles -- a profile a reconciliation can be run manually -or by a cron -- monitoring of reconciliation runs with an history -which keep track of the reconciled Journal items + +- Reconciliation facilities for big volume of transactions. +- Setup different profiles of reconciliation by account. +- Each profile can use many methods of reconciliation. +- This module is also a base to create others + reconciliation methods which can plug in the profiles. +- A profile a reconciliation can be run manually + or by a cron. +- Monitoring of reconciliation runs with an history + which keep track of the reconciled Journal items. 2 simple reconciliation methods are integrated in this module, the simple reconciliations works on 2 lines (1 debit / 1 credit) and do not allow -partial reconcilation, they also match on 1 key, +partial reconciliation, they also match on 1 key, partner or Journal item name. -This module combines both the ``account_easy_reconcile`` -and the``account_advanced_reconcile`` modules -from previous versions. - Usage ===== -Go to 'Invoicing/Periodic Processing/Reconciliation/Mass Automatic Reconcile' to start a -new mass reconcile. +Go to 'Invoicing / Adviser / Mass Automatic Reconcile' to start a new mass +reconcile. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot @@ -50,6 +47,11 @@ If you spotted it first, help us smashing it by providing a detailed and welcome Credits ======= +Images +------ + +* Odoo Community Association: `Icon `_. + Contributors ------------ * Sébastien Beau diff --git a/account_mass_reconcile/__manifest__.py b/account_mass_reconcile/__manifest__.py index 0598772e..1c1fd407 100644 --- a/account_mass_reconcile/__manifest__.py +++ b/account_mass_reconcile/__manifest__.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - "name": "Mass Reconcile", + "name": "Account Mass Reconcile", "version": "11.0.1.0.0", "depends": [ "account_invoicing", diff --git a/account_mass_reconcile/models/base_advanced_reconciliation.py b/account_mass_reconcile/models/base_advanced_reconciliation.py index 3b4fba16..a2c3d50d 100644 --- a/account_mass_reconcile/models/base_advanced_reconciliation.py +++ b/account_mass_reconcile/models/base_advanced_reconciliation.py @@ -173,7 +173,7 @@ class MassReconcileAdvanced(models.AbstractModel): opp_matchers = self._opposite_matchers(opposite_move_line) for matcher in matchers: try: - opp_matcher = opp_matchers.next() + opp_matcher = next(opp_matchers) except StopIteration: # if you fall here, you probably missed to put a `yield` # in `_opposite_matchers()` diff --git a/account_mass_reconcile/models/base_reconciliation.py b/account_mass_reconcile/models/base_reconciliation.py index fe394f1c..2826a8e0 100644 --- a/account_mass_reconcile/models/base_reconciliation.py +++ b/account_mass_reconcile/models/base_reconciliation.py @@ -60,8 +60,11 @@ class MassReconcileBase(models.AbstractModel): ) return ["account_move_line.{}".format(col) for col in aml_cols] + def _selection_columns(self): + return self._base_columns() + def _select_query(self, *args, **kwargs): - return "SELECT %s" % ', '.join(self._base_columns()) + return "SELECT %s" % ', '.join(self._selection_columns()) def _from_query(self, *args, **kwargs): return ("FROM account_move_line ") diff --git a/account_mass_reconcile/static/description/icon.png b/account_mass_reconcile/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/account_mass_reconcile/static/description/icon.png differ diff --git a/account_mass_reconcile/views/mass_reconcile.xml b/account_mass_reconcile/views/mass_reconcile.xml index cb404bb2..0a5ebf4a 100644 --- a/account_mass_reconcile/views/mass_reconcile.xml +++ b/account_mass_reconcile/views/mass_reconcile.xml @@ -10,7 +10,7 @@
@@ -25,7 +25,7 @@ -