diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-09-17 11:27:36 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-09-17 11:27:36 +0000 |
| commit | d7cb0787c9a107434c16f3d4a678511858fb6cd5 (patch) | |
| tree | 8667f96ea9d6726f7bf0d20db67878552b4f3140 /indoteknik_custom/models/sale_order.py | |
| parent | ec115f256cfbc24008606c3c4dc47ecdd96955e8 (diff) | |
| parent | 23d713fc686d56ef5b5e8004b91b3f4fe54117e6 (diff) | |
Merged odoo-backup into cbd-apt
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
| -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 861531b9..94c5f041 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'] |
