diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-05-12 13:48:15 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-05-12 13:48:15 +0700 |
| commit | 6abcea0d18aa1b3e52a3f9aea75e8e224e011267 (patch) | |
| tree | 9724f00b49dac5e6e50fa3b02f1c961a151949f6 | |
| parent | d41b62d9ff0b9c5a3f6d4415e2ca64f68427ee19 (diff) | |
add delivery service type for support rajaongkir
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 4768f31c..69e96968 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -72,6 +72,7 @@ class SaleOrder(models.Model): payment_type = fields.Char(string='Payment Type', help='Jenis pembayaran dengan Midtrans') gross_amount = fields.Float(string='Gross Amount', help='Jumlah pembayaran yang dilakukan dengan Midtrans') notification = fields.Char(string='Notification', help='Dapat membantu error dari approval') + delivery_service_type = fields.Char(string='Delivery Service Type', help='data dari rajaongkir') @api.model def _generate_so_access_token(self, limit=50): diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index a1120137..fde93a9b 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -30,6 +30,7 @@ <field name="approval_status" /> <field name="sales_tax_id" domain="[('type_tax_use','=','sale')]" required="1"/> <field name="carrier_id" required="1"/> + <field name="delivery_service_type" readonly="1"/> </field> <field name="source_id" position="after"> <field name="date_doc_kirim" readonly="1"/> |
