Extrafields can麓t be searched. This is a downside for handling customer specific requirements such as drawing numbers with products etc.
It would be very cool :+1:
here is how i did with dolibarr 4.0.3
caution !! : it is not a good pratice to hard code in the dolibarr core
```diff --git a/www/product/list.php b/www/product/list.php
index c95156b..1c3e608 100644
--- a/www/product/list.php
+++ b/www/product/list.php
@@ -118,6 +118,9 @@ $fieldstosearchall = array(
'p.label'=>"ProductLabel",
'p.description'=>"Description",
"p.note"=>"Note",
note : adding and INDEX on thoses field in the mysql table is required
ALTER TABLE llx_product_extrafields ADD INDEX(refadv);
ALTER TABLE llx_product_extrafields ADD INDEX(sku);
```
hope this will help a bit
Could be very useful 馃憤
This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 15 days (you should still be able to re-open it if required).
Most helpful comment
here is how i did with dolibarr 4.0.3
caution !! : it is not a good pratice to hard code in the dolibarr core
```diff --git a/www/product/list.php b/www/product/list.php
index c95156b..1c3e608 100644
--- a/www/product/list.php
+++ b/www/product/list.php
@@ -118,6 +118,9 @@ $fieldstosearchall = array(
'p.label'=>"ProductLabel",
'p.description'=>"Description",
"p.note"=>"Note",
);
ALTER TABLE
llx_product_extrafieldsADD INDEX(refadv);ALTER TABLE
llx_product_extrafieldsADD INDEX(sku);```
hope this will help a bit