From 97f24f2da7176e0292f53d9c4a369750a88c8d9c Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 29 Jul 2011 16:51:06 +0200 Subject: [PATCH] [FIX] auto-mark automatic todos as done when they're launched bzr revid: xmo@openerp.com-20110729145106-chvzn58l8d0y7tt9 --- openerp/addons/base/ir/ir_actions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openerp/addons/base/ir/ir_actions.py b/openerp/addons/base/ir/ir_actions.py index 3f0e39fffb9..d987e883732 100644 --- a/openerp/addons/base/ir/ir_actions.py +++ b/openerp/addons/base/ir/ir_actions.py @@ -852,6 +852,8 @@ Recurring: the wizard is visible in the configuration panel regardless of its st """ Launch Action of Wizard""" wizard_id = ids and ids[0] or False wizard = self.browse(cr, uid, wizard_id, context=context) + if wizard.type == 'automatic': + wizard.write({'state': 'done'}) res = self.pool.get('ir.actions.act_window').read(cr, uid, wizard.action_id.id, [], context=context) res['nodestroy'] = True