From 11261e1b5ebd8a0d139abdbf23e985a8fb470eac Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 2 Aug 2024 10:23:54 +0700 Subject: add is winner in purchase pricelist --- indoteknik_custom/models/purchase_pricelist.py | 1 + indoteknik_custom/views/purchase_pricelist.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/indoteknik_custom/models/purchase_pricelist.py b/indoteknik_custom/models/purchase_pricelist.py index b189b464..68fb796e 100755 --- a/indoteknik_custom/models/purchase_pricelist.py +++ b/indoteknik_custom/models/purchase_pricelist.py @@ -22,6 +22,7 @@ class PurchasePricelist(models.Model): include_price = fields.Float(string='Final Price', readonly=True) brand_id = fields.Many2one('x_manufactures', string='Brand') count_brand_vendor = fields.Integer(string='Count Brand Vendor') + is_winner = fields.Boolean(string='Winner', default=False, help='Pemenang yang direkomendasikan oleh Merchandise') @api.depends('product_id', 'vendor_id') def _compute_name(self): diff --git a/indoteknik_custom/views/purchase_pricelist.xml b/indoteknik_custom/views/purchase_pricelist.xml index 1ede6854..ca5cd416 100755 --- a/indoteknik_custom/views/purchase_pricelist.xml +++ b/indoteknik_custom/views/purchase_pricelist.xml @@ -19,6 +19,7 @@ + -- cgit v1.2.3