diff --git a/views/hr_expense.xml b/views/hr_expense.xml index 48a8fa7ec05e85eda04b209d56863e68eb022f4e..d46a6c0b5b20fe3b88c0c95b24afc54703a5df5c 100644 --- a/views/hr_expense.xml +++ b/views/hr_expense.xml @@ -37,7 +37,9 @@ <xpath expr="//widget[2]" position="attributes"> <attribute name="invisible">True</attribute> </xpath> - + <field name="product_id" position="attributes"> + <attribute name="domain">[('ur_id', '=', ur_id)]]</attribute> + </field> <field name="reference" position="attributes"> <attribute name="invisible">True</attribute> </field>