From 11a0dd58a7c6f874388f06d2ece33cb1237f79d1 Mon Sep 17 00:00:00 2001 From: Olivier Colson Date: Tue, 31 Jul 2018 17:15:29 +0200 Subject: [PATCH] [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. --- addons/account/models/account_payment.py | 1 + 1 file changed, 1 insertion(+) 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