Skip to content
Snippets Groups Projects
Commit 7502c200 authored by Swapnesh Shah's avatar Swapnesh Shah
Browse files

[FIX] purchase: Set bank account on bill


Fixes #44133
Before this commit, the Bank account on the new Bill created from the PO was not set due to missing methods to set those fields.

This commits adds missing methods to set Bank account.

closes odoo/odoo#44252

X-original-commit: f66042c9
Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent 4eeeb4f1
Branches
Tags
No related merge requests found
......@@ -67,6 +67,7 @@ class AccountMove(models.Model):
self.purchase_id = False
self._onchange_currency()
self.invoice_partner_bank_id = self.bank_partner_id.bank_ids and self.bank_partner_id.bank_ids[0]
@api.model_create_multi
def create(self, vals_list):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment