diff --git a/views/hr_expense.xml b/views/hr_expense.xml index 73bac649f724760b43f78f44c683b1ea49a2ff42..353f821a41d748f4b0ab786f9b8e1733bb2a14e9 100644 --- a/views/hr_expense.xml +++ b/views/hr_expense.xml @@ -38,7 +38,7 @@ <attribute name="invisible">True</attribute> </xpath> <field name="product_id" position="attributes"> - <attribute name="domain">[('ur_id', '=', ur_id)]</attribute> + <attribute name="domain">[('ur_id', '=', context.get('ur_id'))]</attribute> </field> <field name="reference" position="attributes"> <attribute name="invisible">True</attribute>