projects
/
odoo
/
odoo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[IMP] convert applicant to employee: name
[odoo/odoo.git]
/
addons
/
hr_timesheet_sheet
/
hr_timesheet_sheet.py
diff --git
a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
index
5948c02
..
d4e71ce
100644
(file)
--- 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):