Skip to content

Commit

Permalink
[IMP] helpdesk_mgmt: Change toggle_active to web_ribbon
Browse files Browse the repository at this point in the history
TT43041
  • Loading branch information
victoralmau committed Jul 7, 2023
1 parent 27e84f4 commit 8d3abd9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 42 deletions.
22 changes: 8 additions & 14 deletions helpdesk_mgmt/views/helpdesk_ticket_category_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,13 @@
<header>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button
name="toggle_active"
type="object"
class="oe_stat_button"
icon="fa-check"
>
<field
name="active"
widget="boolean_button"
options='{"terminology": "active"}'
/>
</button>
</div>
<div class="oe_button_box" name="button_box" />
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<div class="oe_title">
<label for="name" class="oe_edit_only" />
<h1>
Expand All @@ -45,6 +38,7 @@
</div>
<group name="main">
<field name="company_id" groups="base.group_multi_company" />
<field name="active" invisible="1" />
</group>
</sheet>
</form>
Expand Down
22 changes: 8 additions & 14 deletions helpdesk_mgmt/views/helpdesk_ticket_channel_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,13 @@
<header>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button
name="toggle_active"
type="object"
class="oe_stat_button"
icon="fa-check"
>
<field
name="active"
widget="boolean_button"
options='{"terminology": "active"}'
/>
</button>
</div>
<div class="oe_button_box" name="button_box" />
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<div class="oe_title">
<label for="name" class="oe_edit_only" />
<h1>
Expand All @@ -45,6 +38,7 @@
</div>
<group name="main">
<field name="company_id" groups="base.group_multi_company" />
<field name="active" invisible="1" />
</group>
</sheet>
</form>
Expand Down
22 changes: 8 additions & 14 deletions helpdesk_mgmt/views/helpdesk_ticket_stage_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,13 @@
<header>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button
name="toggle_active"
type="object"
class="oe_stat_button"
icon="fa-check"
>
<field
name="active"
widget="boolean_button"
options='{"terminology": "active"}'
/>
</button>
</div>
<div class="oe_button_box" name="button_box" />
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<div class="oe_title">
<label for="name" class="oe_edit_only" />
<h1>
Expand All @@ -53,6 +46,7 @@
/>
</group>
<group name="main_right">
<field name="active" invisible="1" />
<field name="closed" />
<field
name="close_from_portal"
Expand Down

0 comments on commit 8d3abd9

Please sign in to comment.