I am trying to place invisible an entire row in the tree view when the record has an "x" status, the thing is that I can place it invisible by placing the {invisible} attribute in each field but this is not what I want because this allows me to select the record as in the following image:
and this is the code that I have in the tree view:
<record id="dues_control_tree" model="ir.ui.view">
<field name="name">dues.control.tree</field>
<field name="model">dues.control</field>
<field name="arch" type="xml">
<tree string="Listado De Pagos" decoration-info ="status==2" decoration-danger ="status==1">
<field name="re_customer" attrs="{'invisible':[('status', '=', 2)]}" />
<field name="n_invoice" attrs="{'invisible':[('status', '=', 2)]}" />
<field name="amount_total" attrs="{'invisible':[('status', '=', 2)]}" />
<field name="number_dues" attrs="{'invisible':[('status', '=', 2)]}" />
<field name="amount_dues" attrs="{'invisible':[('status', '=', 2)]}" />
<field name="pay_amount_dues" attrs="{'invisible':[('status', '=', 2)]}"/>
<field name="status" attrs="{'invisible':[('status', '=', 2)]}"/>
</tree>
</field>
</record>
the thing is that I want it not to be seen and the entire row can not be selected when you have the X status.