On Form View i want to hide a button if Customer partner_id is False, i tried t-if with no luck i tied attrs but also didnt work.
Check status of Customer partner_id:
I want to hide the button Send Message:
Any solution?
I tried to run CSS to hide the button
My Code:
<field name="name" attrs="{'invisible': [('partner_id', '=', False)]}">
<style>
.o_chatter_button_new_message {
display: none !important;
}
</style>
</field>

