[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:
niyasraphy
2023-02-10 09:11:48 +01:00
parent 9d417a2f51
commit 802d50219f
@@ -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):