mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[14.0][FIX] account_payment_partner: pass invoice_partner_bank_id correctly on account move create
This commit is contained in:
committed by
Thomas Binsfeld
parent
7660d5924b
commit
6ddda990c8
@@ -149,5 +149,5 @@ class AccountMove(models.Model):
|
||||
if self.env.context.get("active_model") == "sale.order": # pragma: no cover
|
||||
virtual_move = self.new(vals)
|
||||
virtual_move._compute_partner_bank()
|
||||
vals["partner_bank_id"] = virtual_move.partner_bank_id
|
||||
vals["partner_bank_id"] = virtual_move.partner_bank_id.id
|
||||
return super().create(vals)
|
||||
|
||||
Reference in New Issue
Block a user