summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-01-26 14:28:28 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-01-26 14:28:28 +0700
commit506b3f58c116e395f6a89e5b6aadf89fe5a7a40e (patch)
tree7f702c8fab493cc07de55a62d46bb1e399353450 /indoteknik_custom/models
parent36f67ca3cd1140a6e8d4cf537a1ce58d5b5ecdc7 (diff)
midtrans implementation
Diffstat (limited to 'indoteknik_custom/models')
-rwxr-xr-xindoteknik_custom/models/sale_order.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 0b9d1f44..b88d9ad0 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -53,11 +53,19 @@ class SaleOrder(models.Model):
partner_purchase_order_description = fields.Text(string='Keterangan PO Customer', copy=False, help="Keterangan purchase order customer, diisi oleh customer melalui website.", tracking=3)
partner_purchase_order_file = fields.Binary(string='File PO Customer', copy=False, help="File purchase order customer, diisi oleh customer melalui website.")
payment_status = fields.Selection([
- ('confirm', 'Menunggu Konfirmasi'),
('pending', 'Pending'),
- ('lunas', 'Lunas'),
+ ('capture', 'Capture'),
+ ('settlement', 'Settlement'),
+ ('deny', 'Deny'),
('cancel', 'Cancel'),
- ], string='Payment Status', help='Payment Gateway Status / Midtrans / Web')
+ ('expire', 'Expire'),
+ ('failure', 'Failure'),
+ ('refund', 'Refund'),
+ ('chargeback', 'Chargeback'),
+ ('partial_refund', 'Partial Refund'),
+ ('partial_chargeback', 'Partial Chargeback'),
+ ('authorize', 'Authorize'),
+ ], string='Payment Status', help='Payment Gateway Status / Midtrans / Web, https://docs.midtrans.com/en/after-payment/status-cycle')
def calculate_so_status_beginning(self):
so_state = ['sale']