Skip to content
Snippets Groups Projects
Commit 86f2cbb9 authored by Joren Van Onder's avatar Joren Van Onder Committed by Antony Lesuisse
Browse files

[IMP] sale: filter multi-company taxes on a sales order

Showing only the taxes from the same company. Beware that multi-company as
adminstrator is not supported, anyawy this mitigate some of the possible errors
if it happens anyway.
parent f23b9b31
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@
</div>
</group>
<group>
<field name="tax_id" widget="many2many_tags" domain="[('type_tax_use','=','sale')]"/>
<field name="tax_id" widget="many2many_tags" domain="[('type_tax_use','=','sale'),('company_id','=',parent.company_id)]"/>
<field name="th_weight"/>
</group>
</group>
......@@ -240,7 +240,7 @@
<field name="product_uos_qty" groups="product.group_uos" invisible="1"/>
<field name="product_uos" string="UoS" groups="product.group_uos" invisible="1"/>
<field name="price_unit"/>
<field name="tax_id" widget="many2many_tags" domain="[('type_tax_use','=','sale')]"/>
<field name="tax_id" widget="many2many_tags" domain="[('type_tax_use','=','sale'),('company_id','=',parent.company_id)]"/>
<field name="discount" groups="sale.group_discount_per_so_line"/>
<field name="price_subtotal" widget="monetary"/>
</tree>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment