diff --git a/controllers/product.py b/controllers/product.py index 1cc4f6f..4eb1a25 100644 --- a/controllers/product.py +++ b/controllers/product.py @@ -81,7 +81,7 @@ def get_goods_domain(self, category_id, nameLike, **kwargs): domain.append(('wxpp_category_id', 'in', cate_ids)) if nameLike: for srch in nameLike.split(" "): - domain += ['|', ('name', 'ilike', srch), ('barcode', '=', srch)] + domain += ['|', ('name', 'ilike', srch), '|', ('barcode', '=', srch), ('default_code', '=', srch)] return domain