Merge pull request #4264 from expsa/request_sic

fix -87584858
This commit is contained in:
mohammed-alkhazrji 2025-08-19 18:09:19 +03:00 committed by GitHub
commit 2dd2619972
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class BudgetConfirmationCustom(models.Model):
if self.po_id.requisition_id and self.po_id.requisition_type_exclusive == 'exclusive':
self.po_id.requisition_id.write({'state': 'checked'})
if self.po_id:
if self.po_id.requisition_id:
if self.po_id.requisition_id and self.po_id.requisition_type_exclusive == 'exclusive':
self.po_id.write({'state': 'to approve'})
else:
self.po_id.write({'state': 'draft'})