diff options
| -rwxr-xr-x | indoteknik_custom/models/purchase_pricelist.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_pricelist.xml | 1 |
2 files changed, 2 insertions, 0 deletions
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 @@ <field name="brand_id" optional="hide"/> <field name="count_brand_vendor" optional="hide"/> <field name="product_categ_ids" string="Product Category" optional="hide"/> + <field name="is_winner" string="Winner" optional="hide"/> </tree> </field> </record> |
