Review: Needs Fixing
13 + if workcenter_line.state == 'draft':
14 + work_obj.write(cr, uid, workcenter_line.id, {'state': 'done'})
You can not directly change the state to done, as it forgets about the workflow,
you need to follow the transactions that leads work order from draft to done
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-764281-aag/+merge/58459
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-764281-aag.
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp