summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-11-12 09:49:29 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-11-12 09:49:29 +0700
commit9110fb5d93fc7bf9513a0705a22764aca711be26 (patch)
treeaa51b069813001494dbd98bd7c98d444e820bd66 /indoteknik_api/models
parent200d9ba97ba86f759b3d804c253430230c353fe0 (diff)
parent38c6551a94098370e060e45739dc4c8ae923c48e (diff)
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
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':