diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-03-31 14:01:35 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-03-31 14:01:35 +0700 |
| commit | 92ca4ca8d5e16a90c1cfa8d00248c1e12c95d9fd (patch) | |
| tree | 2069fd0295c5538e8023dc7c3331e6470dd7acea /indoteknik_api/models/account_move.py | |
| parent | 690903a2cc7a83e8ec2453a703241539016036b6 (diff) | |
| parent | 4cbb23cd48f70788d440a55b552b6fa3be44ddfe (diff) | |
Merge branch 'release' of bitbucket.org:altafixco/indoteknik-addons into release
Diffstat (limited to 'indoteknik_api/models/account_move.py')
| -rw-r--r-- | indoteknik_api/models/account_move.py | 5 |
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) |
