In account/partner_view.xml is looks like this:
<button type="action" class="oe_stat_button" name="%(account.action_account_moves_all_tree)d" groups="account.group_account_user" icon="fa-list">
<field string="Journal Items" name="journal_item_count" widget="statinfo"/>
</button>
If I try to hide the button via:
<button name="%(account.action_account_moves_all_tree)d" invisible="1"></button>
It complains it cannot be located however I can hide the inside field via:
<field name="journal_item_count" position="attributes">
<attribute name="attrs">{'invisible':1}</attribute>
</field>
How can I hide the whole button?