diff options
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index f1f281a8..6410c150 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -46,6 +46,8 @@ class SaleOrder(models.Model): raise UserError("Status harus draft atau sent") if not order.sales_tax_id: raise UserError("Tax di Header harus diisi") + if not order.carrier_id: + raise UserError("Shipping Method harus diisi") approval1 = approval2 = 0 for line in order.order_line: if not line.product_id or line.product_id.type == 'service': @@ -74,6 +76,8 @@ class SaleOrder(models.Model): for order in self: if not order.sales_tax_id: raise UserError("Tax di Header harus diisi") + if not order.carrier_id: + raise UserError("Shipping Method harus diisi") approval1 = approval2 = 0 for line in order.order_line: if not line.product_id or line.product_id.type == 'service': |
