title: How to hide field depend on condition odoo?
body: <p><code>attrs="{'invisible': [('rule_id.type_test', '!=', 'A')]}"</code> in code above not work, how i can fix this? </p>
  
  <pre><code>class test_list(models.Model):
      _name = 'test.list'
  
      type_test = fields.Selection([('A', 'aaaa'),('B','bbbbb')], default='A', string="Type", required=True)  
      rule_list = fields.One2many('test.rule', 'rule_id')
  </code></pre>
  
  <hr>
  
  <pre><code>class test_rule(models.Model):
      _name = 'test.rule'
  
      rule_id = fields.Many2one('test.list', required=True)
  
      ul = fields.Many2one('product.ul', string='Package Logistic Unit'
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;record model="ir.ui.view" id="rules_form_view"&gt;
              &lt;field name="name"&gt;test.rules.form.view&lt;/field&gt;
              &lt;field name="model"&gt;test.rule&lt;/field&gt;
              &lt;field name="arch" type="xml"&gt;
                  &lt;form string="Test Rules"&gt;
                     &lt;field name="ul" attrs="{'invisible': [('rule_id.type_test', '!=', 'A')]}"/&gt; 
                  &lt;/form&gt;
              &lt;/field&gt;
  &lt;/record&gt;
  </code></pre>