title: sugarcrm disabling search page for module
body: <p>I have two custom modules: <code>cm_product, cm_item</code></p>
  
  <p>with one to many relationship: <code>cm_product -&gt; cm_item</code></p>
  
  <p>I want to disable the search page for <code>cm_item</code>, so the only way to see the items for customer is through it's parent reference: <code>cm_product</code>.</p>
  
  <p>I need to accomplish it through the code.</p>
  
  <p>This is my temporary solution if somebody interested in, file - <code>custom/modules/cm_item/views/view.list.php</code>:</p>
  
  <pre><code>&lt;?php
  if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
  
  require_once 'include/MVC/View/views/view.list.php';
  
  class cm_itemViewList extends ViewList
  {
      public function preDisplay() { }
      public function display() {
          echo &lt;&lt;&lt;HTML
          &lt;h1&gt;Por favor seleccione la Oportunidad para ver sus correspondientes ventas e items.&lt;/h1&gt;
  HTML;
      }
      function prepareSearchForm(){ }
      function listViewProcess(){ }
  }
  </code></pre>
  
  <p>SugarCRM Versión 6.5.11 (Build 8754) Pro edition.</p>