summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorOlivier Colson <oco@odoo.com>2018-07-31 17:15:29 +0200
committerOlivier Colson <oco@odoo.com>2018-07-31 17:16:47 +0200
commit11a0dd58a7c6f874388f06d2ece33cb1237f79d1 (patch)
tree64d8ead4801c0ead3881fa3d128bbb2a3843ccf4 /addons
parente57a1a8e6f6b79e3bb369d88eee295bb5a7788f3 (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 e0b6864b0f7..50387ded587 100644
--- a/addons/account/models/account_payment.py
+++ b/addons/account/models/account_payment.py
@@ -197,6 +197,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