Hello guys. Anyone knows why my domain doesn't work?
[('customer','=',True),('company_type','=','company')]
I'm trying to use that domain on an action to filter and it works for customer True, but keep showing any company type :/
IT KEEP SHOWING COMPANY TYPE 'PERSON' WITH THIS DOMAIN
<record id="partner_cliente_action" model="ir.actions.act_window">
<field name="name">Clientes</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_mode">kanban,tree,form</field>
<field name="view_type">form</field>
<field name="domain">[('customer','=',True),('company_type','=','company')]</field>
<field name="context">{"default_customer":1,"default_is_company":1,"default_company_type":"company","default_tipo_cliente":"pri"}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new client
</p>
</field>
</record>