From b90cb2bf9066d1982fef46164836d0f295c0717b Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Wed, 5 Jan 2022 10:51:33 -0800 Subject: [PATCH] [MIG] account_rec_set_partner: to Odoo 15.0 --- account_rec_set_partner/__manifest__.py | 2 +- account_rec_set_partner/models/account.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/account_rec_set_partner/__manifest__.py b/account_rec_set_partner/__manifest__.py index e08b1111..e5c01cda 100644 --- a/account_rec_set_partner/__manifest__.py +++ b/account_rec_set_partner/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Reconcile Model Set Partner', - 'version': '14.0.1.0.0', + 'version': '15.0.1.0.0', 'author': 'Hibou Corp. ', 'category': 'Accounting', 'summary': 'Reconcile Model can now set the Partner when matched.', diff --git a/account_rec_set_partner/models/account.py b/account_rec_set_partner/models/account.py index 8bd38a28..e5fb0d53 100644 --- a/account_rec_set_partner/models/account.py +++ b/account_rec_set_partner/models/account.py @@ -15,6 +15,10 @@ class AccountReconcileModel(models.Model): """ def _apply_rules(self, st_lines, excluded_ids=None, partner_map=None): ''' Apply criteria to get candidates for all reconciliation models. + + This function is called in enterprise by the reconciliation widget to match + the statement lines with the available candidates (using the reconciliation models). + :param st_lines: Account.bank.statement.lines recordset. :param excluded_ids: Account.move.lines to exclude. :param partner_map: Dict mapping each line with new partner eventually.