title: What is Invalid leaf [ error in odoo?
body: <p>When applying filter to a many2many field I'm getting this error.</p>
  
  <p>Field Definition in python is: 
  Here is field definition in python </p>
  
  <pre><code>fields.Many2many(string='AnalysisProfile',
                      comodel_name='olims.analysis_profile',
                      relation='ar_to_analysisprofile',
                      domain="[('Deactivated', '=',False )]"
  </code></pre>
  
  <p>and in XML View:</p>
  
  <pre><code> &lt;field name="AnalysisProfile" string="Analysis Profile"&gt;&lt;/field&gt;
  </code></pre>
  
  <p>I'm getting following error:</p>
  
  <p>raise ValueError("Invalid leaf %s" % str(self.leaf))</p>
  
  <p>ValueError: Invalid leaf [</p>