Skip to content

Commit

Permalink
[FIX] account_banking_mandate_sale: Fix error when no valid mandate f…
Browse files Browse the repository at this point in the history
…or the partner

Closes OCA#459
  • Loading branch information
pedrobaeza authored and alexis-via committed Nov 3, 2021
1 parent 066d784 commit 42b7acf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion account_banking_mandate_sale/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion account_banking_mandate_sale/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 42b7acf

Please sign in to comment.