From 3be79c69895a189f5a98906b1af756bc91aba8a1 Mon Sep 17 00:00:00 2001 From: RomainLibert Date: Fri, 26 Jul 2019 09:20:28 +0000 Subject: [PATCH] [FIX] lunch: add rule on lunch order User should not change the order once it is ordered closes odoo/odoo#35212 Signed-off-by: Romain Libert (rli) --- addons/lunch/security/lunch_security.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/addons/lunch/security/lunch_security.xml b/addons/lunch/security/lunch_security.xml index bd7835a4a36..fc23a55b21c 100644 --- a/addons/lunch/security/lunch_security.xml +++ b/addons/lunch/security/lunch_security.xml @@ -40,6 +40,26 @@ + + lunch.order: Don't change confirmed order + + [('state', '!=', 'confirmed'), ('user_id', '=', user.id)] + + + + + + + + manager can do whatever + + [(1, '=', 1)] + + + + + +