summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-11-21 14:33:21 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-11-21 14:33:21 +0700
commit5c3110cb0bda84436dcb3eed94a76a45571626fc (patch)
tree55f929e4cb7d442a9e5de45b36b5acfb7d84208b
parentf0733737bf1f48431da411e3c093f60a2ed75cd7 (diff)
add filter by product in window purchase pricelist
-rwxr-xr-xindoteknik_custom/models/purchase_pricelist.py1
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)