diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-18 11:09:12 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-18 11:09:12 +0700 |
| commit | 899c9eea89b4745d76bf19e201f81b2b091dba34 (patch) | |
| tree | 2c9eda33c394bcac61c7ba331de043ca294c81c5 /indoteknik_custom/models/vendor_approval.py | |
| parent | c11d6c564db098b3553893406e9f59bbef029feb (diff) | |
| parent | 34c6611b059cf6ea79bb78e359b973719848f09b (diff) | |
Merge branch 'production' into CR/website-improvment
Diffstat (limited to 'indoteknik_custom/models/vendor_approval.py')
| -rw-r--r-- | indoteknik_custom/models/vendor_approval.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/vendor_approval.py b/indoteknik_custom/models/vendor_approval.py index bcc5d3ea..56b81a37 100644 --- a/indoteknik_custom/models/vendor_approval.py +++ b/indoteknik_custom/models/vendor_approval.py @@ -32,7 +32,7 @@ class VendorApproval(models.Model): self.order_id.vendor_approval = True message = "Vendor Approval approved by %s" % (self.env.user.name) self.order_id.message_post(body=message) - if not self.order_id.due_id: + if not self.order_id.due_id and self.order_id.state == 'draft': self.order_id.action_confirm() def action_reject(self): |
