From 3f869b47ce6936a351b8a4683732a27c38e8b005 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 25 Apr 2014 09:40:18 +0200 Subject: [PATCH] [FIX] lunch: fix security rule, user_id being a related field he may not be set yet at the creation bzr revid: mat@openerp.com-20140425074018-wnrhgsavhmp91xjv --- addons/lunch/security/lunch_security.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/lunch/security/lunch_security.xml b/addons/lunch/security/lunch_security.xml index 5f2a351472c..4ffb6dd2c3d 100644 --- a/addons/lunch/security/lunch_security.xml +++ b/addons/lunch/security/lunch_security.xml @@ -33,7 +33,7 @@ lunch.order.line: do not see and create other people's order line - [('user_id', '=', user.id)] + [('order_id.user_id', '=', user.id)] lunch.order.line: do not see and create other people's order line