From 2c4c5ef80fe7093c2d017802dd0713d460a5b1f7 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 31 Jul 2023 11:23:49 +0700 Subject: fix source --- indoteknik_custom/models/sale_order.py | 1 + indoteknik_custom/views/sale_order.xml | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 12043996..3f25b100 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -89,6 +89,7 @@ class SaleOrder(models.Model): purchase_total = fields.Monetary(string='Purchase Total', compute='_compute_purchase_total') voucher_id = fields.Many2one(comodel_name='voucher', string='Voucher') amount_voucher_disc = fields.Float(string='Voucher Discount') + source_id = fields.Many2one('utm.source', 'Source') def _compute_purchase_total(self): for order in self: diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index cd2b22c3..9bed5c89 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -41,7 +41,7 @@ - + @@ -57,9 +57,7 @@ - [('id', 'in', [32, 59, 60, 61])] - {'required':[('create_date', '>', '2023-08-30')]} - + 1 @@ -113,6 +111,7 @@ + -- cgit v1.2.3