summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorOlivier Colson <oco@odoo.com>2018-08-01 10:34:30 +0200
committerOlivier Colson <oco@odoo.com>2018-08-01 10:34:30 +0200
commiteb35ea557a12553188030936d652dce888d1a8dc (patch)
tree57c60344b27a31822806c85eedd21b465a454303 /addons
parent81a206fa38b95fe66b7a30f8399b72dbc9c01ba2 (diff)
[FIX] account: set 'multi' field to False for payments generated when choosing to register payment for multiple invoices with distinct partners
This field is used by the multiple payment wizard; the payments it generates are always individual and should never have multi=True. Before this commit, they did, because of the values given in context when calling the payment wizard.
Diffstat (limited to 'addons')
-rw-r--r--addons/account/models/account_payment.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py
index e3f03a48952..ebfa4de4e5d 100644
--- a/addons/account/models/account_payment.py
+++ b/addons/account/models/account_payment.py
@@ -259,6 +259,7 @@ class account_register_payments(models.TransientModel):
'currency_id': self.currency_id.id,
'partner_id': invoices[0].commercial_partner_id.id,
'partner_type': MAP_INVOICE_TYPE_PARTNER_TYPE[invoices[0].type],
+ 'multi': False,
}
@api.multi