xxxxxxxxxx
You always can do:
<tree string="XX" editable="top" delete="false">
<button name="unlink" icon="gtk-cancel" type="object" string="Delete"
attrs="{'invisible': [('your_condition', '=', 0)]}"/>
hide delete button
xxxxxxxxxx
You always can do:
<tree string="XX" editable="top" delete="false">
<button name="unlink" icon="gtk-cancel" type="object" string="Delete"
attrs="{'invisible': [('your_condition', '=', 0)]}"/>