summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-02-20 11:32:01 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-02-20 11:32:01 +0700
commite4cd78fc169df2ad092023ab5ffda3fa639d8704 (patch)
tree4801eced2bec866aad6648b85349c81dee87e610 /indoteknik_api/controllers/api_v1
parentb9cf801ad8334fe1b5be7b13b5d0483303c297c7 (diff)
add amount
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/sale_order.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_api/controllers/api_v1/sale_order.py b/indoteknik_api/controllers/api_v1/sale_order.py
index 727d49b7..4d27312e 100644
--- a/indoteknik_api/controllers/api_v1/sale_order.py
+++ b/indoteknik_api/controllers/api_v1/sale_order.py
@@ -39,6 +39,9 @@ class SaleOrder(controller.Controller):
'amount_total': sale.amount_total,
'date_order': self.time_to_str(sale.date_order, '%d/%m/%Y %H:%M:%S'),
'state': sale.state,
+ 'amount_untaxed': sale.amount_untaxed,
+ 'amount_tax': sale.amount_tax,
+ 'amount_total': sale.amount_total,
'product_name': product_name,
'product_not_in_id': product_not_in_id,
'details': [request.env['sale.order.line'].api_single_response(x, context='with_detail') for x in sale.order_line]