From 4c1b4dcb339767bcd5d91926069804b4c5696f24 Mon Sep 17 00:00:00 2001 From: ronozoro Date: Mon, 2 Dec 2024 02:04:31 -0800 Subject: [PATCH] fix issue with order confirm --- .../purchase_requisition_custom/models/purchase_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_purchase/purchase_requisition_custom/models/purchase_order.py b/odex25_purchase/purchase_requisition_custom/models/purchase_order.py index 903698e27..77af5aa59 100644 --- a/odex25_purchase/purchase_requisition_custom/models/purchase_order.py +++ b/odex25_purchase/purchase_requisition_custom/models/purchase_order.py @@ -582,7 +582,7 @@ class PurchaseOrderCustom(models.Model): def button_confirm(self): for order in self: - if order.state not in ['draft','wait']: + if order.state not in ['draft', 'sent', 'sign','wait']: continue order._add_supplier_to_product() # Deal with double validation process