diff options
| author | Martin Trigaux <mat@openerp.com> | 2014-04-25 09:40:18 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2014-04-25 09:40:18 +0200 |
| commit | 3f869b47ce6936a351b8a4683732a27c38e8b005 (patch) | |
| tree | c2c6b418bca914a3ce2352867f3556743982f4cc /addons | |
| parent | 95abee75798817af2a57dca49b18783ed85fde3d (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')
| -rw-r--r-- | addons/lunch/security/lunch_security.xml | 2 |
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> |
