diff options
| author | Stephan Christianus <stephanchrst@gmail.com> | 2023-01-27 02:29:27 +0000 |
|---|---|---|
| committer | Stephan Christianus <stephanchrst@gmail.com> | 2023-01-27 02:29:27 +0000 |
| commit | 0377b1d5150171a9907b0f5bb06f970d4cf0959d (patch) | |
| tree | 52dde3389ad2e8e6cd262d8a96bb05b11c114319 /indoteknik_custom | |
| parent | d9431f5ff267f05af08955ce16543b31535527dd (diff) | |
| parent | cbc41d6fc6126ba630dcfedda55694af3e5b23bc (diff) | |
Merged in staging (pull request #28)
Staging
Diffstat (limited to 'indoteknik_custom')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 14 |
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'] |
