mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_request: Allow to set to draft multiple records
This commit is contained in:
committed by
Bernat Puig Font
parent
08e59c33e5
commit
4cab686678
@@ -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, "
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user