diff options
| -rwxr-xr-x | indoteknik_custom/models/purchase_pricelist.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
