From e1fa510e814f29ff89406466b5e3bacceb774e12 Mon Sep 17 00:00:00 2001 From: Benjamin <benjamin@le-filament.com> Date: Wed, 19 Aug 2020 17:46:36 +0200 Subject: [PATCH] [fix] get ur value from context --- views/hr_expense.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/hr_expense.xml b/views/hr_expense.xml index 73bac64..353f821 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> -- GitLab