From 704c0bec4044d652456e628e94f33538fb6c6c8d Mon Sep 17 00:00:00 2001 From: "Anh Thao Pham (pta)" Date: Mon, 22 Apr 2024 16:13:45 +0200 Subject: [PATCH] [FIX] account: fix taxes proposition in fiscal position of branch Steps to reproduce: - Install Accounting - Go to "Settings / Users & Companies / Companies" - Create a branch company (e.g. Branch Company) for a company (e.g. YourCompany) - Switch to Branch Company - Create a fiscal position Issue: It is not possible to select the taxes from the parent company in the tax mapping. opw-3850514 closes odoo/odoo#163552 X-original-commit: f1f561b720e040c7284d42a6d1ce840ff86e7237 Signed-off-by: Brice Bartoletti (bib) --- addons/account/views/partner_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml index d87106843de..bc45385af99 100644 --- a/addons/account/views/partner_view.xml +++ b/addons/account/views/partner_view.xml @@ -66,7 +66,7 @@ domain="[ ('type_tax_use', '!=', 'none'), ('country_id', '=', parent.company_country_id), - '|', ('company_id', '=', False), ('company_id', '=', parent.company_id) + '|', ('company_id', '=', False), ('company_id', 'parent_of', parent.company_id) ]" context="{'append_type_to_tax_name': True}" /> @@ -75,7 +75,7 @@ domain="[ ('type_tax_use', '!=', 'none'), ('country_id', '=', parent.country_id if parent.foreign_vat else parent.company_country_id), - '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]" + '|', ('company_id', '=', False), ('company_id', 'parent_of', parent.company_id)]" context="{'append_type_to_tax_name': True}" />