summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/vendor_approval.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-10-21 14:57:48 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-10-21 14:57:48 +0700
commit3e609fe132724bc8d477f48ebe3abc1a90aacfa0 (patch)
tree97d72ea30f84d292e47f49a88cfeb057938b6e1a /indoteknik_custom/models/vendor_approval.py
parentd0af9ab71c65f6e7e1280b2978ebac2d0d514a45 (diff)
parenteadc70481dd65dd7483aa2ae5c9bcc68bb274f3e (diff)
Merge remote-tracking branch 'origin/production' into feature/generate_url
Diffstat (limited to 'indoteknik_custom/models/vendor_approval.py')
-rw-r--r--indoteknik_custom/models/vendor_approval.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/vendor_approval.py b/indoteknik_custom/models/vendor_approval.py
index e540b8fc..b0d58b85 100644
--- a/indoteknik_custom/models/vendor_approval.py
+++ b/indoteknik_custom/models/vendor_approval.py
@@ -29,7 +29,7 @@ class VendorApproval(models.Model):
raise UserError('Hanya Merchandiser yang bisa approve')
self.state = 'done'
- self.order_id.update({'vendor_approval': True})
+ self.order_id.vendor_approval = True
self.order_id.action_confirm()
message = "Vendor Approval approved by %s" % (self.env.user.name)
self.order_id.message_post(body=message)