Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX][10.0] account_banking_mandate: onchange return value missing #382

Merged
merged 2 commits into from Aug 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion account_banking_mandate/__manifest__.py
Expand Up @@ -7,7 +7,7 @@
{
'name': 'Account Banking Mandate',
'summary': 'Banking mandates',
'version': '10.0.1.1.0',
'version': '10.0.1.1.1',
'license': 'AGPL-3',
'author': "Compassion CH, "
"Tecnativa, "
Expand Down
3 changes: 2 additions & 1 deletion account_banking_mandate/models/account_invoice.py
Expand Up @@ -65,7 +65,7 @@ def _prepare_refund(
@api.onchange('partner_id', 'company_id')
def _onchange_partner_id(self):
"""Select by default the first valid mandate of the partner"""
super(AccountInvoice, self)._onchange_partner_id()
res = super(AccountInvoice, self)._onchange_partner_id()
if (
self.type == 'out_invoice' and
self.partner_id.customer_payment_mode_id.
Expand All @@ -81,6 +81,7 @@ def _onchange_partner_id(self):
self.mandate_id = mandates[0]
else:
self.mandate_id = False
return res

@api.onchange('payment_mode_id')
def payment_mode_id_change(self):
Expand Down