diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-11-03 16:14:12 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-11-03 16:14:12 +0700 |
| commit | 0bb7e8ff5eafa5dbc218d547999876bb11e05c69 (patch) | |
| tree | 668810e3ec35f86de65ad8cb14d0175c12537133 | |
| parent | 40df41c64bdf3c307720d1695240e1534f40b08b (diff) | |
push
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 534d8122..c2b15078 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -1123,7 +1123,7 @@ class PurchaseOrder(models.Model): if not self.not_update_purchasepricelist: self.add_product_to_pricelist() for line in self.order_line: - if not line.product_id.public_categ_ids: + if line.product_id.type == 'product' and not line.product_id.categ_id: raise UserError("Product %s kategorinya kosong" % line.product_id.name) if not line.product_id.purchase_ok: raise UserError("Terdapat barang yang tidak bisa diproses") |
