From e747df6f0401f289d146dcc6448df0ac44035ca8 Mon Sep 17 00:00:00 2001
From: Xiaowu Zhang <xiaowu.zhang@nexedi.com>
Date: Wed, 6 Nov 2024 16:00:06 +0000
Subject: [PATCH] erp5_mrp: don't index those lines/cells in fulltext, it's
 parent we usually look for

---
 .../Manufacturing%20Execution%20Cell.xml      | 16 ++++++++++++++-
 .../Manufacturing%20Execution%20Line.xml      | 16 ++++++++++++++-
 .../Manufacturing%20Order%20Cell.xml          |  6 ++++++
 .../Manufacturing%20Order%20Line.xml          |  6 ++++++
 .../Production%20Order%20Cell.xml             | 20 +++++++++++++++++--
 .../Production%20Order%20Line.xml             | 16 ++++++++++++++-
 .../Production%20Packing%20List%20Cell.xml    | 16 ++++++++++++++-
 .../Production%20Packing%20List%20Line.xml    | 16 ++++++++++++++-
 8 files changed, 105 insertions(+), 7 deletions(-)

diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Cell.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Cell.xml
index 5308e1cfdc5..50ec939c401 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Cell.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Cell.xml
@@ -77,7 +77,15 @@
         </item>
         <item>
             <key> <string>permission</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple/>
+            </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -87,6 +95,12 @@
             <key> <string>type_class</string> </key>
             <value> <string>ManufacturingExecutionCell</string> </value>
         </item>
+        <item>
+            <key> <string>type_interface</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Line.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Line.xml
index 4a62378cba8..88435267ae0 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Line.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Execution%20Line.xml
@@ -77,7 +77,15 @@
         </item>
         <item>
             <key> <string>permission</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple/>
+            </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -87,6 +95,12 @@
             <key> <string>type_class</string> </key>
             <value> <string>ManufacturingExecutionLine</string> </value>
         </item>
+        <item>
+            <key> <string>type_interface</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Order%20Cell.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Order%20Cell.xml
index 579f0c5951d..0c099d6e311 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Order%20Cell.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Order%20Cell.xml
@@ -73,6 +73,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>title</string> </key>
             <value> <string></string> </value>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Order%20Line.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Order%20Line.xml
index 23e58f0b782..f1e97f8a5d3 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Order%20Line.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Manufacturing%20Order%20Line.xml
@@ -85,6 +85,12 @@
             <key> <string>redirect_script</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>title</string> </key>
             <value> <string></string> </value>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Cell.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Cell.xml
index c28e25aaf38..e78758b93c1 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Cell.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Cell.xml
@@ -63,11 +63,21 @@
         </item>
         <item>
             <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>permission</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple/>
+            </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -77,6 +87,12 @@
             <key> <string>type_class</string> </key>
             <value> <string>OrderCell</string> </value>
         </item>
+        <item>
+            <key> <string>type_interface</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Line.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Line.xml
index c598ab77efc..19b814d610a 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Line.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Order%20Line.xml
@@ -77,12 +77,20 @@
         </item>
         <item>
             <key> <string>permission</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>redirect_script</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>title</string> </key>
             <value> <string></string> </value>
@@ -91,6 +99,12 @@
             <key> <string>type_class</string> </key>
             <value> <string>OrderLine</string> </value>
         </item>
+        <item>
+            <key> <string>type_interface</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Cell.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Cell.xml
index 20c20652320..849f80471db 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Cell.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Cell.xml
@@ -67,7 +67,15 @@
         </item>
         <item>
             <key> <string>permission</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple/>
+            </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -77,6 +85,12 @@
             <key> <string>type_class</string> </key>
             <value> <string>DeliveryCell</string> </value>
         </item>
+        <item>
+            <key> <string>type_interface</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Line.xml b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Line.xml
index 4033d0220da..13fe3aed4be 100644
--- a/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Line.xml
+++ b/bt5/erp5_mrp/PortalTypeTemplateItem/portal_types/Production%20Packing%20List%20Line.xml
@@ -77,7 +77,15 @@
         </item>
         <item>
             <key> <string>permission</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple/>
+            </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -87,6 +95,12 @@
             <key> <string>type_class</string> </key>
             <value> <string>DeliveryLine</string> </value>
         </item>
+        <item>
+            <key> <string>type_interface</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
-- 
2.30.9