mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[13.0][FIX] account_banking_mandate: Set Force company
This commit is contained in:
committed by
Stefan Rijnhart
parent
573ac24f5f
commit
f850a5a213
@@ -35,6 +35,7 @@ class AccountMove(models.Model):
|
||||
for onchange_method, changed_fields in list(onchanges.items()):
|
||||
if any(f not in vals for f in changed_fields):
|
||||
invoice = self.new(vals)
|
||||
invoice = invoice.with_context(force_company=invoice.company_id.id,)
|
||||
getattr(invoice, onchange_method)()
|
||||
for field in changed_fields:
|
||||
if field not in vals and invoice[field]:
|
||||
|
||||
Reference in New Issue
Block a user