From: Martin Trigaux Date: Fri, 25 Apr 2014 07:40:18 +0000 (+0200) Subject: [FIX] lunch: fix security rule, user_id being a related field he may not be set yet... X-Git-Tag: InsPy_master01~40^2~52 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;ds=sidebyside;h=3f869b47ce6936a351b8a4683732a27c38e8b005;p=odoo%2Fodoo.git [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 --- diff --git a/addons/lunch/security/lunch_security.xml b/addons/lunch/security/lunch_security.xml index 5f2a351..4ffb6dd 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