Update purchase_order.py
This commit is contained in:
parent
9f1be75f1c
commit
bfe96d83f8
|
|
@ -677,11 +677,13 @@ class Attachment(models.Model):
|
|||
|
||||
|
||||
class ProductCustom(models.Model):
|
||||
_inherit = 'product.product'
|
||||
_inherit = 'product.product'
|
||||
|
||||
@api.model
|
||||
def _name_search(self, name, args=None, operator='ilike', limit=100, name_get_uid=None):
|
||||
product_ids = []
|
||||
if args is None:
|
||||
args = []
|
||||
res = super(ProductCustom, self)._name_search(name, args=args, operator=operator, limit=limit,
|
||||
name_get_uid=name_get_uid)
|
||||
if name:
|
||||
|
|
|
|||
Loading…
Reference in New Issue