fix issue with order confirm
This commit is contained in:
parent
62e3f8cc9b
commit
4c1b4dcb33
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue