[FIX][15.0] mail_activity_team. smart button archive

This commit is contained in:
Joan Mateu Jordi 2022-04-26 11:07:23 +02:00
parent 289e6869df
commit 1de302f48c

View File

@ -22,21 +22,15 @@
/> />
</header> </header>
<sheet string="Activity Team"> <sheet string="Activity Team">
<div class="oe_button_box" name="button_box"> <widget
<button name="web_ribbon"
name="toggle_active" title="Archived"
type="object" bg_color="bg-danger"
class="oe_stat_button" attrs="{'invisible': [('active', '=', True)]}"
icon="fa-archive" />
>
<field
name="active"
widget="boolean_button"
options='{"terminology": "archive"}'
/></button>
</div>
<group> <group>
<group name="base"> <group name="base">
<field name="active" invisible="1" />
<field name="name" /> <field name="name" />
<field name="user_id" /> <field name="user_id" />
</group> </group>