title: OpenERP - XML - How to hide the report tag?
body: <p>I have to show/hide a report tag in a report.xml file depending on the state of the object, but the following code does not work, when I update de OpenERP module, it shows me an error message:</p>
  
  <pre><code>openerp Invalid attribute attrs for element report
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;openerp&gt;
  &lt;data&gt;
  
      &lt;report
          auto="False"
          id="partidas_contralor"
          model="grp.account.partidas.contralor.header"
          name="grp.account.partidas.contralor.header"
          rml="grp_partidas_contralor/report/partidas_contralor.rml"
          string="Imprimir partida contralor"
          header="True"
      /&gt;
  
      &lt;report
          auto="False"
          id="declaracion_jurada"
          model="grp.account.partidas.contralor.header"
          name="grp.declaracion_jurada_partidas_print"
          rml="grp_partidas_contralor/report/declaracion_jurada.rml"
          string="Imprimir declaración jurada"
          header="True"
          attrs="{'invisible':[('state','!=','draft')]}"
      /&gt;
  
  &lt;/data&gt;
  &lt;/openerp&gt;
  </code></pre>