summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order_line.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-11-14 10:05:08 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-11-14 10:05:08 +0700
commit9365e1bb72a34eb17cbb25536d9e2dbb843e7fe8 (patch)
tree116638f4118cc3e5ed095be899f5af1206659c5f /indoteknik_custom/models/sale_order_line.py
parent769d986194421f04b1ac06309d9a8cb64bcc6144 (diff)
note so line on stock picking
Diffstat (limited to 'indoteknik_custom/models/sale_order_line.py')
-rw-r--r--indoteknik_custom/models/sale_order_line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order_line.py b/indoteknik_custom/models/sale_order_line.py
index 5a6640ec..f4469117 100644
--- a/indoteknik_custom/models/sale_order_line.py
+++ b/indoteknik_custom/models/sale_order_line.py
@@ -372,5 +372,5 @@ class SaleOrderLine(models.Model):
continue
if not line.product_id.product_tmpl_id.sale_ok:
raise UserError('Product %s belum bisa dijual, harap hubungi finance' % line.product_id.display_name)
- if not line.vendor_id or not line.purchase_price:
+ if not line.vendor_id or not line.purchase_price and not line.display_type == 'line_note':
raise UserError(_('Isi Vendor dan Harga Beli sebelum Request Approval')) \ No newline at end of file