diff options
| author | Humberto Arocha <hbto@vauxoo.com> | 2019-08-21 09:09:09 +0000 |
|---|---|---|
| committer | Humberto Arocha <hbto@vauxoo.com> | 2019-08-21 09:09:09 +0000 |
| commit | 480fdfbb7cb11a2066992082516d991bf7a38376 (patch) | |
| tree | 202ef0118ade6c8c93d0362142aa2e68fdf02230 /addons | |
| parent | 9bc4a19d74185a066b7ac870b02fd1836c4392b6 (diff) | |
[FIX] account: 'account.move' object has no attribute 'partner_bank_id'
closes odoo/odoo#35894
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/models/account_payment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index de720f64d51..ff41ca762ff 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -802,7 +802,7 @@ class payment_register(models.TransientModel): grouped = defaultdict(lambda: self.env["account.move"]) for inv in self.invoice_ids: if self.group_payment: - grouped[(inv.commercial_partner_id, inv.currency_id, inv.partner_bank_id, MAP_INVOICE_TYPE_PARTNER_TYPE[inv.type])] += inv + grouped[(inv.commercial_partner_id, inv.currency_id, inv.invoice_partner_bank_id, MAP_INVOICE_TYPE_PARTNER_TYPE[inv.type])] += inv else: grouped[inv.id] += inv return [self._prepare_payment_vals(invoices) for invoices in grouped.values()] |
