From fa189ce12e1120a1caf7d00b2a2f748a94ce68dd Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Mon, 13 Mar 2023 11:43:20 +0700 Subject: line no cant fill if duplicate so --- indoteknik_custom/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 2dcfa718..fa5f3b6a 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -354,7 +354,7 @@ class SaleOrderLine(models.Model): domain=['|', ('active', '=', False), ('active', '=', True)]) delivery_amt_line = fields.Float('DeliveryAmtLine', compute='compute_delivery_amt_line') fee_third_party_line = fields.Float('FeeThirdPartyLine', compute='compute_fee_third_party_line', default=0) - line_no = fields.Integer('No', default=0) + line_no = fields.Integer('No', default=0, copy=False) def compute_item_margin(self): for line in self: -- cgit v1.2.3 From d47876712dd119851d988f891b44b0ebf6f91d27 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 14 Mar 2023 16:37:28 +0700 Subject: add flashsale option for website --- indoteknik_custom/models/product_pricelist.py | 4 ++++ indoteknik_custom/views/product_pricelist.xml | 1 + 2 files changed, 5 insertions(+) diff --git a/indoteknik_custom/models/product_pricelist.py b/indoteknik_custom/models/product_pricelist.py index 190887cf..a309945d 100644 --- a/indoteknik_custom/models/product_pricelist.py +++ b/indoteknik_custom/models/product_pricelist.py @@ -10,6 +10,10 @@ class ProductPricelist(models.Model): start_date = fields.Datetime(string='Start Date') end_date = fields.Datetime(string='End Date') banner_mobile = fields.Binary(string='Banner Mobile') + flashsale_option = fields.Selection([ + ('all', 'For All User'), + ('registered_user', 'Only for Registered User') + ], string='Flashsale Option') class ProductPricelistItem(models.Model): diff --git a/indoteknik_custom/views/product_pricelist.xml b/indoteknik_custom/views/product_pricelist.xml index 3ff6854f..4cf06e18 100644 --- a/indoteknik_custom/views/product_pricelist.xml +++ b/indoteknik_custom/views/product_pricelist.xml @@ -7,6 +7,7 @@ + -- cgit v1.2.3