[FIX] account: prevent the user from assigning to an account a tax belonging to another company than the one the account is linked to.

This commit is contained in:
Olivier Colson
2018-02-28 15:27:48 +01:00
parent 239f4fec29
commit d1377650da
+1 -1
View File
@@ -16,7 +16,7 @@
<field name="name"/>
<field name="code" placeholder="code"/>
<field name="user_type_id" widget="selection"/>
<field name="tax_ids" widget="many2many_tags"/>
<field name="tax_ids" widget="many2many_tags" domain="[('company_id','=',company_id)]"/>
<field name="tag_ids" widget="many2many_tags" domain="[('applicability', '!=', 'taxes')]" context="{'default_applicability': 'accounts'}"/>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>