[FIX] hr_expense: Allow using contract in expense with form view
In the tree view, the domain for the field `analytic_account` was already `[('type','in',['normal','contract'])]` It's therefore normal to apply the same domain for this field in the form view. Closes #2733
This commit is contained in:
parent
a904645696
commit
3cc7a0915c
|
@ -93,7 +93,7 @@
|
||||||
<field name="product_id" on_change="onchange_product_id(product_id, context)" context="{'default_hr_expense_ok':1}"/>
|
<field name="product_id" on_change="onchange_product_id(product_id, context)" context="{'default_hr_expense_ok':1}"/>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="ref"/>
|
<field name="ref"/>
|
||||||
<field domain="[('type','=','normal')]" name="analytic_account" groups="analytic.group_analytic_accounting"/>
|
<field domain="[('type','in',['normal','contract'])]" name="analytic_account" groups="analytic.group_analytic_accounting"/>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
<field name="unit_amount"/>
|
<field name="unit_amount"/>
|
||||||
|
|
Loading…
Reference in New Issue