fix purchase budget

This commit is contained in:
ronozoro 2024-07-31 22:24:14 +03:00
parent cf00d6efb8
commit 20b0bdb882
No known key found for this signature in database
GPG Key ID: 7C2BDED35C62C0F3
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ class PurchaseOrderCustom(models.Model):
data.email_to_vendor = False
purchase_budget = self.env.company.purchase_budget
if purchase_budget:
data.state = 'wait_for_send'
data.is_purchase_budget = False
data.state = 'wait'
else:
data.state = 'draft'