From 02a1cfe4a4166d1b10ac82d9d89a1be64c870649 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 6 Dec 2023 11:05:10 +0700 Subject: add note for purchase order line --- indoteknik_custom/models/purchase_order_line.py | 1 + 1 file changed, 1 insertion(+) (limited to 'indoteknik_custom/models/purchase_order_line.py') diff --git a/indoteknik_custom/models/purchase_order_line.py b/indoteknik_custom/models/purchase_order_line.py index 2e91bb69..b082eae9 100755 --- a/indoteknik_custom/models/purchase_order_line.py +++ b/indoteknik_custom/models/purchase_order_line.py @@ -31,6 +31,7 @@ class PurchaseOrderLine(models.Model): price_vendor = fields.Float(string='Price Vendor', compute='compute_price_vendor') so_line_id = fields.Many2one('sale.order.line', string='ID SO Line') indent = fields.Boolean(string='Indent', help='centang ini jika barang indent') + note = fields.Char(string='Note') def compute_price_vendor(self): for line in self: -- cgit v1.2.3 From 29577f0e4a62a3ff74baa7a7a28c1b978d80942b Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 7 Dec 2023 11:48:39 +0700 Subject: add field ltc on line purchase orders --- indoteknik_custom/models/purchase_order_line.py | 1 + 1 file changed, 1 insertion(+) (limited to 'indoteknik_custom/models/purchase_order_line.py') diff --git a/indoteknik_custom/models/purchase_order_line.py b/indoteknik_custom/models/purchase_order_line.py index b082eae9..b2bfc7cd 100755 --- a/indoteknik_custom/models/purchase_order_line.py +++ b/indoteknik_custom/models/purchase_order_line.py @@ -31,6 +31,7 @@ class PurchaseOrderLine(models.Model): price_vendor = fields.Float(string='Price Vendor', compute='compute_price_vendor') so_line_id = fields.Many2one('sale.order.line', string='ID SO Line') indent = fields.Boolean(string='Indent', help='centang ini jika barang indent') + is_ltc = fields.Boolean(string='Is LTC?', help='centang ini jika barang sudah di LTC') note = fields.Char(string='Note') def compute_price_vendor(self): -- cgit v1.2.3 From 46feda7156435e96faf0ff0c6c5297b8d3355375 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 7 Dec 2023 14:16:46 +0700 Subject: change naming of is ltc --- indoteknik_custom/models/purchase_order_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indoteknik_custom/models/purchase_order_line.py') diff --git a/indoteknik_custom/models/purchase_order_line.py b/indoteknik_custom/models/purchase_order_line.py index b2bfc7cd..c6ef2aab 100755 --- a/indoteknik_custom/models/purchase_order_line.py +++ b/indoteknik_custom/models/purchase_order_line.py @@ -31,7 +31,7 @@ class PurchaseOrderLine(models.Model): price_vendor = fields.Float(string='Price Vendor', compute='compute_price_vendor') so_line_id = fields.Many2one('sale.order.line', string='ID SO Line') indent = fields.Boolean(string='Indent', help='centang ini jika barang indent') - is_ltc = fields.Boolean(string='Is LTC?', help='centang ini jika barang sudah di LTC') + is_ltc = fields.Boolean(string='Sudah di LTC', help='centang ini jika barang sudah di LTC') note = fields.Char(string='Note') def compute_price_vendor(self): -- cgit v1.2.3 From 8e38bd3992101ab43c3d64c58f2a52131c675a19 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 8 Dec 2023 09:21:50 +0700 Subject: add default is ltc --- indoteknik_custom/models/purchase_order_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indoteknik_custom/models/purchase_order_line.py') diff --git a/indoteknik_custom/models/purchase_order_line.py b/indoteknik_custom/models/purchase_order_line.py index c6ef2aab..eced5d43 100755 --- a/indoteknik_custom/models/purchase_order_line.py +++ b/indoteknik_custom/models/purchase_order_line.py @@ -31,7 +31,7 @@ class PurchaseOrderLine(models.Model): price_vendor = fields.Float(string='Price Vendor', compute='compute_price_vendor') so_line_id = fields.Many2one('sale.order.line', string='ID SO Line') indent = fields.Boolean(string='Indent', help='centang ini jika barang indent') - is_ltc = fields.Boolean(string='Sudah di LTC', help='centang ini jika barang sudah di LTC') + is_ltc = fields.Boolean(string='Sudah di LTC', default=False, help='centang ini jika barang sudah di LTC') note = fields.Char(string='Note') def compute_price_vendor(self): -- cgit v1.2.3