summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-01-09 10:58:20 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-01-09 10:58:20 +0700
commit8a70abf6f05e9ffc6e74ec2e80f61db72f6f0401 (patch)
tree42486064976d273f6d7f3a01d014354389f09f38
parent9c79127e28a6952a0d607d660ff8c2c75ef4728e (diff)
parent59193e57d5645e5c92e231131ca33586f1075559 (diff)
Merge branch 'release' into staging
-rwxr-xr-xindoteknik_custom/models/sale_order.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 3f6f5032..e7b28c6d 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -188,6 +188,8 @@ class SaleOrder(models.Model):
# raise UserError("Bisa langsung Confirm")
self.check_due()
for order in self:
+ if order.warehouse_id.id != 8: #GD Bandengan
+ raise UserError('Gudang harus Bandengan')
if order.state == 'cancel' or order.state == 'done' or order.state == 'sale':
raise UserError("Status harus draft atau sent")
if order.partner_id.parent_id: