summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/models')
-rw-r--r--indoteknik_api/models/sale_order.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_api/models/sale_order.py b/indoteknik_api/models/sale_order.py
index 76532d20..2b6bef37 100644
--- a/indoteknik_api/models/sale_order.py
+++ b/indoteknik_api/models/sale_order.py
@@ -58,9 +58,10 @@ class SaleOrder(models.Model):
for line in sale_order.order_line:
product = self.env['product.product'].api_single_response(line.product_id)
product['price'] = {
- 'price': line.price_unit,
+ 'price': line.price_unit / 1.11,
'discount_percentage': line.discount,
- 'price_discount': line.price_unit - (line.price_unit * (line.discount/100))
+ 'price_discount': line.price_reduce_taxexcl,
+ 'subtotal': line.price_subtotal
}
product['quantity'] = line.product_uom_qty
data_with_detail['products'].append(product)