[IMP] stock_request: Allow to set to draft multiple records

This commit is contained in:
Enric Tobella
2019-07-12 12:56:26 +02:00
committed by Bernat Puig Font
parent 08e59c33e5
commit 4cab686678
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
{
"name": "Stock Request",
"summary": "Internal request for stock",
"version": "12.0.1.0.0",
"version": "12.0.1.0.1",
"license": "LGPL-3",
"website": "https://github.com/stock-logistics-warehouse",
"author": "Eficent, "

View File

@@ -199,7 +199,7 @@ class StockRequest(models.Model):
return True
def action_draft(self):
self.state = 'draft'
self.write({'state': 'draft'})
return True
def action_cancel(self):