summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2025-09-17 15:36:45 +0700
committerstephanchrst <stephanchrst@gmail.com>2025-09-17 15:36:45 +0700
commit9e570f94949dad425e4bd9ce438240373460e4fc (patch)
tree2f77054eb261dd18b56bced343eba22fa786fcf8
parent811e9dde8a027276b92a8dd594e11237b0b3b8c5 (diff)
bf invoice dp, redundant qty invoice in sale order
-rwxr-xr-xindoteknik_custom/models/sale_order.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 484a9016..dd06f541 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -1848,7 +1848,8 @@ class SaleOrder(models.Model):
# if term.days > 0:
# raise UserError('Hanya dapat digunakan pada Cash Before Delivery')
for line in self.order_line:
- line.qty_to_invoice = line.product_uom_qty
+ if line.product_id.type == 'product':
+ line.qty_to_invoice = line.product_uom_qty
# def _get_pickings(self):
# state = ['assigned']