[MIG] account_rec_set_partner: to Odoo 15.0

This commit is contained in:
Jared Kipe
2022-01-05 10:51:33 -08:00
parent 9d720f21f1
commit b90cb2bf90
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
'name': 'Reconcile Model Set Partner',
'version': '14.0.1.0.0',
'version': '15.0.1.0.0',
'author': 'Hibou Corp. <hello@hibou.io>',
'category': 'Accounting',
'summary': 'Reconcile Model can now set the Partner when matched.',

View File

@@ -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.