[IMP] purchase_requisition: blanket order reference
currently on confirming a blanket order will generate a reference for the record using the sequence and once the record is moved to cancel state and clicking the reset to draft button is clearing the already assigned reference number. and on clicking confirm again will generate a new reference number for the same record. this pr will stop clearing the sequence number on reset to draft button. closes odoo/odoo#108574 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
@@ -136,7 +136,6 @@ class PurchaseRequisition(models.Model):
|
||||
|
||||
def action_draft(self):
|
||||
self.ensure_one()
|
||||
self.name = 'New'
|
||||
self.write({'state': 'draft'})
|
||||
|
||||
def action_done(self):
|
||||
|
||||
Reference in New Issue
Block a user