Merge pull request #454 from expsa/pla-fix-budget-ops-fin

Pla fix budget ops fin
This commit is contained in:
Moutaz Muhammad 2024-07-31 22:24:51 +03:00 committed by GitHub
commit 3179ec5b2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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'