Update purchase_order.py

This commit is contained in:
zainab2097 2024-09-25 11:32:26 +03:00 committed by GitHub
parent 9f1be75f1c
commit bfe96d83f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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: