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 Dec 24, 2020
1 parent d9ee534 commit e23b0a5
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 e23b0a5

Please sign in to comment.