From bfe96d83f8b0c4549d0136fde650d1fac53987ab Mon Sep 17 00:00:00 2001 From: zainab2097 <149927291+zainab2097@users.noreply.github.com> Date: Wed, 25 Sep 2024 11:32:26 +0300 Subject: [PATCH] Update purchase_order.py --- .../purchase_requisition_custom/models/purchase_order.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: