diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2025-09-17 15:36:45 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2025-09-17 15:36:45 +0700 |
| commit | 9e570f94949dad425e4bd9ce438240373460e4fc (patch) | |
| tree | 2f77054eb261dd18b56bced343eba22fa786fcf8 | |
| parent | 811e9dde8a027276b92a8dd594e11237b0b3b8c5 (diff) | |
bf invoice dp, redundant qty invoice in sale order
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 3 |
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'] |
