From 1641ce147735a3548ddef2982dfb6873955dfebc Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 Jan 2023 10:30:07 +0700 Subject: add manufacture in sales > product pricelist item --- indoteknik_custom/models/product_pricelist.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indoteknik_custom/models') diff --git a/indoteknik_custom/models/product_pricelist.py b/indoteknik_custom/models/product_pricelist.py index 7b850d57..190887cf 100644 --- a/indoteknik_custom/models/product_pricelist.py +++ b/indoteknik_custom/models/product_pricelist.py @@ -15,6 +15,8 @@ class ProductPricelist(models.Model): class ProductPricelistItem(models.Model): _inherit = 'product.pricelist.item' + manufacture_id = fields.Many2one('x_manufactures', string='Manufacture') + @api.onchange('fixed_price','price_discount') def update_solr_flag(self): for item in self: -- cgit v1.2.3