summaryrefslogtreecommitdiff
path: root/indoteknik_api/models/account_move.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/models/account_move.py')
-rw-r--r--indoteknik_api/models/account_move.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_api/models/account_move.py b/indoteknik_api/models/account_move.py
index 9bbe8c94..54e06f84 100644
--- a/indoteknik_api/models/account_move.py
+++ b/indoteknik_api/models/account_move.py
@@ -37,6 +37,11 @@ class AccountMove(models.Model):
}
for line in account_move.invoice_line_ids:
product = self.env['product.product'].api_single_response(line.product_id)
+ product['price'] = {
+ 'price': line.price_unit,
+ 'discount_percentage': line.discount,
+ 'price_discount': line.price_unit - (line.price_unit * (line.discount/100))
+ }
product['quantity'] = line.quantity
data_with_detail['products'].append(product)
data.update(data_with_detail)