diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-19 10:44:02 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-19 10:44:02 +0700 |
| commit | dd6544f7fa40d8e688349f2f143d258f6dd3eec7 (patch) | |
| tree | 172b3eee2b556afc50da2b277d6fbd6e3b51e370 /indoteknik_api/controllers/api_v1 | |
| parent | 70716b5f202cdd3bf560cd091a8e6dfd6ebcdbb2 (diff) | |
Fix get voucher api, ignore voucher for promotion program
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/voucher.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_api/controllers/api_v1/voucher.py b/indoteknik_api/controllers/api_v1/voucher.py index 1888fe29..53f118ec 100644 --- a/indoteknik_api/controllers/api_v1/voucher.py +++ b/indoteknik_api/controllers/api_v1/voucher.py @@ -43,6 +43,7 @@ class Voucher(controller.Controller): order_line = [] for product in products: + if product['cart_type'] == 'promotion': continue order_line.append({ 'product_id': request.env['product.product'].browse(product['id']), 'price': product['price']['price'], |
