diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-06-30 10:24:17 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-06-30 10:24:17 +0700 |
| commit | 08bab33de9381b9a6d7ed53bb64976d52f0d7ecc (patch) | |
| tree | 98f1a60cb1d913d8096a35ebe5e34ece4be9689b | |
| parent | 43ac0072bbf65bc7feb882bc3da8bbaefed5a6fe (diff) | |
change type of purchase total in sale order
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 7741aab7..9407db30 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -78,7 +78,7 @@ class SaleOrder(models.Model): delivery_service_type = fields.Char(string='Delivery Service Type', help='data dari rajaongkir') grand_total = fields.Monetary(string='Grand Total', help='Amount total + amount delivery', compute='_compute_grand_total') payment_link_midtrans = fields.Char(string='Payment Link', help='Url payment yg digenerate oleh midtrans, harap diserahkan ke customer agar dapat dilakukan pembayaran secara mandiri') - purchase_total = fields.Char(string='Purchase Total', compute='_compute_purchase_total') + purchase_total = fields.Monetary(string='Purchase Total', compute='_compute_purchase_total') def _compute_purchase_total(self): for order in self: |
