From d4e0fe018d05fd0dc3e9ab77977d6e97440c73c0 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Fri, 7 Feb 2020 13:42:17 +0000 Subject: [IMP] *: use `ref=` instead of `eval="ref('` in xml field tags. * Code cleanup * Avoid a safe evaluation of the field value when loading those records. closes odoo/odoo#44883 Related: odoo/enterprise#8283 Signed-off-by: Victor Feyens (vfe) --- addons/website_slides/data/gamification_data.xml | 54 ++++++++++++------------ 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'addons/website_slides/data/gamification_data.xml') diff --git a/addons/website_slides/data/gamification_data.xml b/addons/website_slides/data/gamification_data.xml index cefecaac089..134b13020ce 100644 --- a/addons/website_slides/data/gamification_data.xml +++ b/addons/website_slides/data/gamification_data.xml @@ -1,5 +1,5 @@ - + @@ -15,14 +15,14 @@ Register to the platform count boolean - + higher [ ('active', '!=', False), ('karma', '>', 0), ] True - + user.id @@ -31,14 +31,14 @@ once personal never - + True [('karma', '>', 0)] inprogress - - + + 1 @@ -56,7 +56,7 @@ Complete your profile count boolean - + higher [ ('partner_id.country_id', '!=', False), @@ -64,7 +64,7 @@ ('partner_id.email', '!=', False) ] True - + user.id @@ -73,14 +73,14 @@ once personal never - + True [('karma', '>', 0)] inprogress - - + + 1 @@ -98,13 +98,13 @@ Complete a course count boolean - + higher [ ('completed', '=', True) ] True - + user.partner_id.id @@ -113,14 +113,14 @@ once personal never - + True [('karma', '>', 0)] inprogress - - + + 1 @@ -138,14 +138,14 @@ Get a certification count boolean - + higher [ ('completed', '=', True), (0, '=', 1) ] True - + user.partner_id.id @@ -154,14 +154,14 @@ once personal never - + True [('karma', '>', 0)] inprogress - - + + 1 @@ -179,13 +179,13 @@ Reach 2000 XP count boolean - + higher [ ('karma', '>=', 2000) ] True - + user.id @@ -194,14 +194,14 @@ once personal never - + True [('karma', '>', 0)] inprogress - - + + 1 - + -- cgit v1.2.3