Skip to content

Commit

Permalink
[IMP] helpdesk_mgmt: tags - visual and functional adjustments
Browse files Browse the repository at this point in the history
Included in this commit:
* Tickets tree: added tags, as optional field.
* Tickets search view: added tags grouping functionality.
* Tickets form: usage of tag colors.
* Tags form: replaced old archive/active button with ribbon.
* Tags view: added active field.
  • Loading branch information
dalonsod committed Jun 29, 2023
1 parent 9999371 commit 1fa472a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
22 changes: 9 additions & 13 deletions helpdesk_mgmt/views/helpdesk_ticket_tag_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,14 @@
<header>
</header>
<sheet>
<field name="active" invisible="1" />
<widget
name="web_ribbon"
text="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<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="{&quot;terminology&quot;: &quot;active&quot;}"
/>
</button>
</div>
<div class="oe_title">
<label for="name" class="oe_edit_only" />
Expand All @@ -54,8 +49,9 @@
<field name="name">helpdesk.ticket.tag.tree</field>
<field name="model">helpdesk.ticket.tag</field>
<field name="arch" type="xml">
<tree>
<tree decoration-muted="not active">
<field name="name" />
<field name="active" widget="boolean_toggle" />
</tree>
</field>
</record>
Expand Down
14 changes: 13 additions & 1 deletion helpdesk_mgmt/views/helpdesk_ticket_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@
domain="[]"
context="{'group_by':'stage_id'}"
/>
<filter
string="Tag"
name="group_tag"
domain="[]"
context="{'group_by':'tag_ids'}"
/>
</group>
</search>
</field>
Expand Down Expand Up @@ -170,7 +176,7 @@
<field
name="tag_ids"
widget="many2many_tags"
options="{'no_create_edit': True}"
options="{'no_create_edit': True, 'color_field': 'color',}"
/>
</group>
</group>
Expand Down Expand Up @@ -212,6 +218,12 @@
<field name="user_id" />
<field name="stage_id" />
<field name="priority" widget="priority" />
<field
name="tag_ids"
widget="many2many_tags"
options="{'color_field': 'color'}"
optional="show"
/>
<field name="create_date" readonly="1" />
<field name="last_stage_update" />
</tree>
Expand Down

0 comments on commit 1fa472a

Please sign in to comment.