From 95a8d5759e6b033978af444813d1436828e640ea Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 1 Feb 2013 14:53:07 +0530 Subject: [PATCH] [FIX] hr_timesheet_sheet: did some changes. bzr revid: cha@tinyerp.com-20130201092307-yajxn97wnhz3xofj --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 5948c02bc5e..d4e71cedbf5 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -190,8 +190,7 @@ class hr_timesheet_sheet(osv.osv): def action_set_to_draft(self, cr, uid, ids, *args): self.write(cr, uid, ids, {'state': 'draft'}) - for id in ids: - self.create_workflow(cr, uid, [id]) + self.create_workflow(cr, uid, ids) return True def name_get(self, cr, uid, ids, context=None):