[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) <bib@odoo.com>
This commit is contained in:
Anh Thao Pham (pta)
2024-04-27 08:06:03 +00:00
parent a4ea153932
commit 704c0bec40
+2 -2
View File
@@ -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}"
/>
</tree>