summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-11-12 11:29:07 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-11-12 11:29:07 +0700
commit16cb40e0a943af1679fca60ff8cc4e6a683bd883 (patch)
tree4240f8d05a5cd9bb1261a99c4c5ce6904c58cdd7 /indoteknik_api/models
parent1f42c0b0adf937e238e68fc2f7307234fff51952 (diff)
parentd9d9159e43aaabcc88661d0f23d362ed2e0128f6 (diff)
Merge branch 'production' into feature/max_plafon_order_qty
# Conflicts: # indoteknik_custom/security/ir.model.access.csv
Diffstat (limited to 'indoteknik_api/models')
-rw-r--r--indoteknik_api/models/sale_order.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_api/models/sale_order.py b/indoteknik_api/models/sale_order.py
index 725dbb4b..8e0371a3 100644
--- a/indoteknik_api/models/sale_order.py
+++ b/indoteknik_api/models/sale_order.py
@@ -84,6 +84,7 @@ class SaleOrder(models.Model):
'subtotal': line.price_subtotal
}
product['quantity'] = line.product_uom_qty
+ product['available_quantity'] = line.product_available_quantity
data_with_detail['products'].append(product)
for invoice in sale_order.invoice_ids:
if invoice.state == 'posted':