summaryrefslogtreecommitdiff
path: root/addons/lunch/security
diff options
context:
space:
mode:
authorMartin Trigaux <mat@openerp.com>2014-04-25 09:40:18 +0200
committerMartin Trigaux <mat@openerp.com>2014-04-25 09:40:18 +0200
commit3f869b47ce6936a351b8a4683732a27c38e8b005 (patch)
treec2c6b418bca914a3ce2352867f3556743982f4cc /addons/lunch/security
parent95abee75798817af2a57dca49b18783ed85fde3d (diff)
[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
Diffstat (limited to 'addons/lunch/security')
-rw-r--r--addons/lunch/security/lunch_security.xml2
1 files changed, 1 insertions, 1 deletions
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 @@
<field name="name">lunch.order.line: do not see and create other people's order line</field>
<field name="model_id" ref="model_lunch_order_line"/>
<field name="groups" eval="[(4, ref('group_lunch_user'))]"/>
- <field name="domain_force">[('user_id', '=', user.id)]</field>
+ <field name="domain_force">[('order_id.user_id', '=', user.id)]</field>
</record>
<record id="lunch_mind_other_food_line" model="ir.rule">
<field name="name">lunch.order.line: do not see and create other people's order line</field>