diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-09-27 11:36:23 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-09-27 11:36:23 +0700 |
| commit | 90ee21e0c1b2179b53d1dbadd6232bf22a3eea5a (patch) | |
| tree | a80f2ebcdc1aa07e51f94b7be821be3a5be2e789 /indoteknik_custom/models/sale_order.py | |
| parent | 59354f566bc4d735f5a4a7bd96d663247d1990e2 (diff) | |
Update purchase_order.py and sale_order.py
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 1fb88495..73047171 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -39,6 +39,8 @@ class SaleOrder(models.Model): raise UserError("Status harus draft atau sent") approval1 = approval2 = 0 for line in order.order_line: + if line.product_id.id == 232383: + raise UserError(_('Tidak bisa Confirm menggunakan Produk Sementara')) if not line.product_id or line.product_id.type == 'service': continue if (line.item_percent_margin <= 15) and ( |
