Skip to content

Commit

Permalink
[FIX] sale_order_type_ux: fiscal position on invoice vals
Browse files Browse the repository at this point in the history
closes #662

Ticket: 61435
Signed-off-by: mem-adhoc <mem@adhoc.com.ar>
  • Loading branch information
pablohmontenegro committed May 5, 2023
1 parent 5e25d7f commit cfffe9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_order_type_ux/models/sale_order.py
Expand Up @@ -52,5 +52,5 @@ def _prepare_invoice(self):
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:
res['fiscal_position_id'] = self.env['account.fiscal.position'].with_company(
company.id)._get_fiscal_position(self.partner_invoice_id)
company.id)._get_fiscal_position(self.partner_invoice_id).id
return res

0 comments on commit cfffe9b

Please sign in to comment.