diff --git a/hotel_reservation/models/hotel_reservation.py b/hotel_reservation/models/hotel_reservation.py index 3a5491d..af0a63b 100644 --- a/hotel_reservation/models/hotel_reservation.py +++ b/hotel_reservation/models/hotel_reservation.py @@ -318,8 +318,8 @@ def set_to_draft_reservation(self): for reservation in self: reservation.write({'state':'draft'}) # Deleting the existing instance of workflow for PO - self.delete_workflow(cr, uid, [reservation.id]) - self.create_workflow(cr, uid, [reservation.id]) + reservation.delete_workflow() + reservation.create_workflow() return True @api.multi