def action_draft(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {"state": "draft"}, context=context)
return self
def action_draft(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {"state": "draft"}, context=context)
return self