diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-06-16 11:19:48 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-06-19 17:37:38 +0200 |
| commit | 057ed8eacfe8aeb905769e9e94c19eacbef7350a (patch) | |
| tree | 29ceadce45e4e4367178a681bb69483e1512344d /odoo/addons/base | |
| parent | e1ee9fee8d2a4e76a09cfba937ded88274ecf000 (diff) | |
[IMP] base: Remove a seemingly unused method
Diffstat (limited to 'odoo/addons/base')
| -rw-r--r-- | odoo/addons/base/ir/ir_actions.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/odoo/addons/base/ir/ir_actions.py b/odoo/addons/base/ir/ir_actions.py index 4979c898e08..cdc5f72c6a0 100644 --- a/odoo/addons/base/ir/ir_actions.py +++ b/odoo/addons/base/ir/ir_actions.py @@ -638,33 +638,6 @@ class IrActionsTodo(models.Model): """ Sets configuration wizard in TODO state""" return self.write({'state': 'open'}) - @api.multi - def progress(self): - """ Returns a dict with 3 keys {todo, done, total}. - - These keys all map to integers and provide the number of todos - marked as open, the total number of todos and the number of - todos not open (which is basically a shortcut to total-todo) - - :rtype: dict - """ - user_groups = self.env.user.groups_id - - done_count = self.search_count([ - ('state', '!=', open), - '|', ('groups_id', '=', False), - ('groups_id', 'in', user_groups.ids), - ]) - total_count = self.search_count([ - '|', ('groups_id', '=', False), - ('groups_id', 'in', user_groups.ids), - ]) - return { - 'done': done_count, - 'total': total_count, - 'todo': total_count - done_count, - } - class IrActionsActClient(models.Model): _name = 'ir.actions.client' |
