Skip to content

Commit

Permalink
[13.0] [FIX] sale_order_type_ux: Fix a bug in the compare of the comp…
Browse files Browse the repository at this point in the history
…anies.
  • Loading branch information
nicomacr committed Feb 10, 2021
1 parent 9292ce6 commit 20c6e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_order_type_ux/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _prepare_invoice(self):
res = super()._prepare_invoice()
company = self.type_id.journal_id.company_id
self = self.with_context(force_company=company.id)
if company != self.company_id.id:
if company != self.company_id:
res['invoice_partner_bank_id'] = company.partner_id.bank_ids[:1].id
so_fiscal_position = self.env['account.fiscal.position'].browse(res['fiscal_position_id'])
if so_fiscal_position.company_id and so_fiscal_position.company_id != company:
Expand Down

0 comments on commit 20c6e45

Please sign in to comment.