diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-08-02 10:23:54 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-08-02 10:23:54 +0700 |
| commit | 11261e1b5ebd8a0d139abdbf23e985a8fb470eac (patch) | |
| tree | 38ace4b4e1bd3b2bab920de5925eba4cd201f0a2 | |
| parent | f0399cbacb8453ecdf147601e4953421226d32ac (diff) | |
add is winner in purchase pricelist
| -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> |
