From 021c8de63fad862b2d792ee9a8f52680024a6003 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 22 Apr 2013 16:28:11 +0200 Subject: [PATCH] [ADD] action to create new users bzr revid: mat@openerp.com-20130422142811-yle27izd3zhre2c0 --- addons/gamification/goal.py | 1 + addons/gamification/goal_base_data.xml | 13 +++++++++++++ addons/gamification/static/src/js/gamification.js | 1 - 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/addons/gamification/goal.py b/addons/gamification/goal.py index 2377f5843c9..f64635d5f60 100644 --- a/addons/gamification/goal.py +++ b/addons/gamification/goal.py @@ -385,6 +385,7 @@ class gamification_goal(osv.Model): for (view_id, mode) in action['views']: if mode == "form": views = [(view_id, mode)] + break action['views'] = views action['target'] = 'new' return action diff --git a/addons/gamification/goal_base_data.xml b/addons/gamification/goal_base_data.xml index b1958475ce8..99603f917b7 100644 --- a/addons/gamification/goal_base_data.xml +++ b/addons/gamification/goal_base_data.xml @@ -46,6 +46,18 @@ company_id.id + + + New User + ir.actions.act_window + res.users + form + new + + {'default_groups_ref': ['base.group_user']} + Create and manage users that will connect to the system. Users can be deactivated should there be a period of time during which they will/should not connect to the system. You can assign them groups in order to give them specific access to the applications they need to use in the system. + + Invite new Users Create at least another user @@ -53,6 +65,7 @@ count [('id', '!=', user_id)] + diff --git a/addons/gamification/static/src/js/gamification.js b/addons/gamification/static/src/js/gamification.js index edfc304f83f..6965020e73d 100644 --- a/addons/gamification/static/src/js/gamification.js +++ b/addons/gamification/static/src/js/gamification.js @@ -50,7 +50,6 @@ openerp.gamification = function(instance) { $.when(plan_action).done(function() { var action_manager = new instance.web.ActionManager(this); action_manager.do_action(plan_action.action).done(function () { - console.log(plan_action.action); self.get_goal_todo_info(); }); });