fix issue with order confirm

This commit is contained in:
ronozoro 2024-12-02 02:04:31 -08:00
parent 62e3f8cc9b
commit 4c1b4dcb33
No known key found for this signature in database
GPG Key ID: 7C2BDED35C62C0F3
1 changed files with 1 additions and 1 deletions

View File

@ -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