title: Search domain : multiple condition in odoo
body: <p>How to convert this expression : ((A &amp; B) | ( C &amp; D)) | (( E &amp; F) | (G &amp; H))  in  OpenERP domain syntax </p>
  
  <p>PostgreSQL query is : </p>
  
  <pre><code>SELECT
    *
  FROM
     calendar_event
  WHERE
    (
      (start_datetime &lt;= '2020-01-07 09:00:00' and '2020-01-07 09:00:00' &lt;= stop_datetime) or
      (start_datetime &lt;= '2020-01-07 11:00:00' and '2020-01-07 11:00:00' &lt;= stop_datetime)
    ) or (
      ('2020-01-07 09:00:00' &lt;= start_datetime and start_datetime &lt;= '2020-01-07 11:00:00') or
      ('2020-01-07 09:00:00' &lt;= stop_datetime and stop_datetime &lt;= '2020-01-07 11:00:00')
    )
  </code></pre>
  
  <p>I try to make like this but is not correct, where i'm wrong please?</p>
  
  <pre><code>   inParams1.push([
           "|",
           "&amp;",
           ["start_datetime", "&lt;",  '2020-01-07 09:00:00'],
           ['2020-01-07 09:00:00', "&lt;=", "stop_datetime"],
           "&amp;",
           ["start_datetime", "&lt;=", '2020-01-07 11:00:00'],
           ['2020-01-07 11:00:00', "&lt;=", "stop_datetime"],
  
           "|",
           "&amp;",
           ['2020-01-07 09:00:00', "&lt;=", " start_datetime"],
           ["start_datetime", "&lt;=",'2020-01-07 11:00:00'],
           "&amp;",
           ['2020-01-07 09:00:00', "&lt;=",  "stop_datetime"],
       ["stop_datetime", "&lt;=",'2020-01-07 11:00:00']
  ]);
  </code></pre>
  
  <p>Please i need your help, i have many days working and i can't find a solution :(</p>