diff --git a/odex25_purchase/purchase_requisition_custom/models/purchase_order.py b/odex25_purchase/purchase_requisition_custom/models/purchase_order.py index f93012ed9..f311db563 100644 --- a/odex25_purchase/purchase_requisition_custom/models/purchase_order.py +++ b/odex25_purchase/purchase_requisition_custom/models/purchase_order.py @@ -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: