[FIX] stock_landed_cost: domain on expense account
In the landed cost types form view (landed costs types being nothing else than `product.product`), we force users to choose an account of type `other`, in order to prevent them from entering wrong data, other types of accounts, or receive an error message when setting a view account type. This domain is actually the domain already applied in the regular `product.template` and `product.product` form view, thanks to `account.product_template_form_view` Closes #4719
This commit is contained in:
parent
2f842d1703
commit
19668013ad
|
@ -190,7 +190,7 @@
|
|||
<group>
|
||||
<field name="split_method"/>
|
||||
<field name="standard_price"/>
|
||||
<field name="property_account_expense"/>
|
||||
<field name="property_account_expense" domain="[('type','=','other')]"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
||||
|
|
Loading…
Reference in New Issue