diff --git a/account_banking_mandate_sale/__manifest__.py b/account_banking_mandate_sale/__manifest__.py index 031dd003d592..a2ce59f80523 100644 --- a/account_banking_mandate_sale/__manifest__.py +++ b/account_banking_mandate_sale/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Account Banking Mandate Sale', - 'version': '10.0.1.0.0', + 'version': '10.0.1.0.1', 'category': 'Banking addons', 'license': 'AGPL-3', 'summary': "Adds mandates on sale orders", diff --git a/account_banking_mandate_sale/models/sale_order.py b/account_banking_mandate_sale/models/sale_order.py index 887f55602d90..93afaf989106 100644 --- a/account_banking_mandate_sale/models/sale_order.py +++ b/account_banking_mandate_sale/models/sale_order.py @@ -35,4 +35,4 @@ def payment_mode_change(self): ('state', '=', 'valid'), ('partner_id', '=', self.commercial_partner_id.id), ]) - self.mandate_id = mandates[0] + self.mandate_id = mandates[:1]