diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-31 11:06:12 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-31 11:06:12 +0700 |
| commit | 3584361a88b312711f0c6d0b633abf872d9789af (patch) | |
| tree | 96ed15625c7d32279942b801962c2056eafc3ebd /indoteknik_api/models/account_move.py | |
| parent | d0b45d86e85e1859755014c12de24c04699b5103 (diff) | |
| parent | 0a0e1774d7ff25dfd6605ce4dfdc7dfdeb45eb5e (diff) | |
Merge branch 'staging' 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) |
