From 6313de4dc8f86a19f92ea737e7d2df9f91066fb2 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 19 Feb 2013 17:52:15 +0100 Subject: [PATCH] [ADD] gamification: add remind and last update value bzr revid: mat@openerp.com-20130219165215-kscj3kpld3h8rz41 --- addons/gamification/goal.py | 4 ++++ addons/gamification/view/plan.xml | 1 + 2 files changed, 5 insertions(+) diff --git a/addons/gamification/goal.py b/addons/gamification/goal.py index 8fb9c4d7091..bc0057a6613 100644 --- a/addons/gamification/goal.py +++ b/addons/gamification/goal.py @@ -161,6 +161,8 @@ class gamification_goal(osv.Model): string='State', required=True, track_visibility = 'always'), + 'last_update' : fields.date('Last Update', + help="In case of manual goal, reminders are sent if the goal as not been updated for a while (defined in goal plan). Ignored in case of non-manual goal or goal not linked to a plan."), # } _defaults = { @@ -225,6 +227,8 @@ class gamification_goal_plan(osv.Model): string='Report to', help='Group that will receive the report in addition to the user'), 'report_header' : fields.text('Report Header'), + 'remind_update_delays' : fields.integer('Remind delays', + help="The number of days after which the user assigned to a manual goal will be reminded. Never reminded if no value is specified.") } _defaults = { diff --git a/addons/gamification/view/plan.xml b/addons/gamification/view/plan.xml index 109b8ef3319..123513fe9f6 100644 --- a/addons/gamification/view/plan.xml +++ b/addons/gamification/view/plan.xml @@ -74,6 +74,7 @@ +