From 5c3110cb0bda84436dcb3eed94a76a45571626fc Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Mon, 21 Nov 2022 14:33:21 +0700 Subject: add filter by product in window purchase pricelist --- indoteknik_custom/models/purchase_pricelist.py | 1 + 1 file changed, 1 insertion(+) diff --git a/indoteknik_custom/models/purchase_pricelist.py b/indoteknik_custom/models/purchase_pricelist.py index 25e551ae..4ea2b9ef 100755 --- a/indoteknik_custom/models/purchase_pricelist.py +++ b/indoteknik_custom/models/purchase_pricelist.py @@ -3,6 +3,7 @@ from odoo import models, fields, api class PurchasePricelist(models.Model): _name = 'purchase.pricelist' + _rec_name = 'product_id' name = fields.Char(string='Name', compute="_compute_name") product_id = fields.Many2one('product.product', string="Product", required=True) -- cgit v1.2.3