[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:
Maxime Chambreuil - http://www.savoirfairelinux.com
2015-07-13 12:38:54 +02:00
committed by Denis Ledoux
parent a904645696
commit 3cc7a0915c
+1 -1
View File
@@ -93,7 +93,7 @@
<field name="product_id" on_change="onchange_product_id(product_id, context)" context="{'default_hr_expense_ok':1}"/>
<field name="name"/>
<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>
<field name="unit_amount"/>