I have added
<div class="oe_button_box" name="button_box">
<field name="active" invisible="1"/>
<button type="object" class="oe_stat_button" icon="fa-archive" name="toggle_active" string="Archive" attrs="{'invisible': [('active', '=', False)]}"/>
<button type="object" class="oe_stat_button" icon="fa-archive" name="toggle_active" string="Restore" attrs="{'invisible': [('active', '=', True)]}"/>
</div>
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
this to the sheet of the form of my view but unfortunately, the buttons do not get displayed.
This is what I want:
But this is what it looks like:
what is missing?