Skip to content

Commit

Permalink
Fixed #89
Browse files Browse the repository at this point in the history
Closed #89
  • Loading branch information
JayVora-SerpentCS committed Feb 21, 2017
1 parent 6a424d8 commit 9b6a047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hotel_reservation/models/hotel_reservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b6a047

Please sign in to comment.