title: How to use attrs attribute on Odoo to combine multiple attributes (invisible, readonly or required) into a single one?
body: <p>In Odoo when you have an xpath you can add "attrs" to a field like required or invisible, when a condition is met. This works fine.</p>
  
  <p>I'm trying to combine those 2. I can't get it to work and can't find anywhere how to do it.</p>
  
  <p>For example this is possible:</p>
  
  <pre><code>&lt;field name="name" attrs="{'invisible': [('condition', '=', False)]}"/&gt;
  &lt;field name="name2" attrs="{'readonly': [('condition', '=', False)]}"/&gt;
  &lt;field name="name3" attrs="{'required': [('condition', '=', False)]}"/&gt;
  </code></pre>
  
  <p>But what I can't get to work is something like:</p>
  
  <pre><code>&lt;field name="name" attrs="{'invisible': [('condition1', '=', False)]}, 'required': [('condition2', '=', True)]}"/&gt;
  </code></pre>
  
  <p>I want one field to be invisible when condition 1 is met and (also) required when condition 2 is met.
  I've tried different syntaxes but don't know how to do it.</p>
  
  <p>What is the correct way to do it?</p>