From 802d50219f7f001eea87a0238183815f4c46b4e7 Mon Sep 17 00:00:00 2001 From: niyasraphy Date: Fri, 23 Dec 2022 06:34:14 +0000 Subject: [PATCH] [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) --- addons/purchase_requisition/models/purchase_requisition.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/purchase_requisition/models/purchase_requisition.py b/addons/purchase_requisition/models/purchase_requisition.py index 1cc6d96d8a3..606f2ad26e1 100644 --- a/addons/purchase_requisition/models/purchase_requisition.py +++ b/addons/purchase_requisition/models/purchase_requisition.py @@ -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):