Skip to content

Commit

Permalink
[18.0][FIX] helpdesk_mgmt: update kanban content and images
Browse files Browse the repository at this point in the history
  • Loading branch information
kobros-tech authored and JasminSForgeFlow committed Feb 13, 2025
1 parent 0b13d48 commit 70b7f07
Show file tree
Hide file tree
Showing 20 changed files with 54 additions and 48 deletions.
7 changes: 6 additions & 1 deletion helpdesk_mgmt/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ To create a new ticket from the kanban view:
8. Add a description.
9. You can also attach files to the ticket.

|Tickets01|
|Tickets01| |Tickets02|

.. |Tickets_Kanban| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets_Kanban.PNG
.. |Tickets01| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets01.PNG
.. |Tickets02| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets02.PNG

Known issues / Roadmap
======================
Expand Down Expand Up @@ -244,6 +245,10 @@ Contributors

- Houzéfa Abbasbhay

- `Kencove <https://kencove.com>`__:

- Mohamed Alkobrosli

Maintainers
-----------

Expand Down
24 changes: 12 additions & 12 deletions helpdesk_mgmt/controllers/myaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from collections import OrderedDict
from operator import itemgetter

from odoo import _, http
from odoo import http
from odoo.exceptions import AccessError, MissingError
from odoo.http import request
from odoo.osv.expression import AND, OR
Expand Down Expand Up @@ -64,7 +64,7 @@ def portal_my_tickets(
)

searchbar_filters = {
"all": {"label": _("All"), "domain": []},
"all": {"label": self.env._("All"), "domain": []},
}
for stage in request.env["helpdesk.ticket.stage"].search([]):
searchbar_filters[str(stage.id)] = {
Expand Down Expand Up @@ -199,42 +199,42 @@ def _ticket_get_page_view_values(self, ticket, access_token, **kwargs):
def _ticket_get_searchbar_sortings(self):
return {
"date": {
"label": _("Newest"),
"label": self.env._("Newest"),
"order": "create_date desc",
"sequence": 1,
},
"name": {"label": _("Title"), "order": "name", "sequence": 2},
"stage": {"label": _("Stage"), "order": "stage_id", "sequence": 3},
"name": {"label": self.env._("Title"), "order": "name", "sequence": 2},
"stage": {"label": self.env._("Stage"), "order": "stage_id", "sequence": 3},
"update": {
"label": _("Last Stage Update"),
"label": self.env._("Last Stage Update"),
"order": "last_stage_update desc",
"sequence": 4,
},
}

def _ticket_get_searchbar_groupby(self):
values = {
"none": {"input": "none", "label": _("None"), "order": 1},
"none": {"input": "none", "label": self.env._("None"), "order": 1},
"category": {
"input": "category",
"label": _("Category"),
"label": self.env._("Category"),
"order": 2,
},
"stage": {"input": "stage", "label": _("Stage"), "order": 3},
"stage": {"input": "stage", "label": self.env._("Stage"), "order": 3},
}
return dict(sorted(values.items(), key=lambda item: item[1]["order"]))

def _ticket_get_searchbar_inputs(self):
values = {
"all": {"input": "all", "label": _("Search in All"), "order": 1},
"all": {"input": "all", "label": self.env._("Search in All"), "order": 1},
"number": {
"input": "number",
"label": _("Search in Number"),
"label": self.env._("Search in Number"),
"order": 2,
},
"name": {
"input": "name",
"label": _("Search in Title"),
"label": self.env._("Search in Title"),
"order": 3,
},
}
Expand Down
10 changes: 6 additions & 4 deletions helpdesk_mgmt/models/helpdesk_ticket.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from odoo import _, api, fields, models, tools
from odoo import api, fields, models, tools
from odoo.exceptions import AccessError


Expand Down Expand Up @@ -241,7 +241,7 @@ def message_new(self, msg, custom_values=None):
if custom_values is None:
custom_values = {}
defaults = {
"name": msg.get("subject") or _("No Subject"),
"name": msg.get("subject") or self.env._("No Subject"),
"description": msg.get("body"),
"partner_email": msg.get("from"),
"partner_id": msg.get("author_id"),
Expand Down Expand Up @@ -287,13 +287,15 @@ def _message_get_suggested_recipients(self):
for ticket in self:
if ticket.partner_id:
ticket._message_add_suggested_recipient(
recipients, partner=ticket.partner_id, reason=_("Customer")
recipients,
partner=ticket.partner_id,
reason=self.env._("Customer"),
)
elif ticket.partner_email:
ticket._message_add_suggested_recipient(
recipients,
email=ticket.partner_email,
reason=_("Customer Email"),
reason=self.env._("Customer Email"),
)
except AccessError:
# no read access rights -> just ignore suggested recipients because this
Expand Down
2 changes: 2 additions & 0 deletions helpdesk_mgmt/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@
- David Alonso
- [XCG Consulting](https://xcg-consulting.fr):
- Houzéfa Abbasbhay
- [Kencove](https://kencove.com):
- Mohamed Alkobrosli
1 change: 1 addition & 0 deletions helpdesk_mgmt/readme/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ To create a new ticket from the kanban view:
9. You can also attach files to the ticket.

![Tickets01](../static/description/Tickets01.PNG)
![Tickets02](../static/description/Tickets02.PNG)
12 changes: 6 additions & 6 deletions helpdesk_mgmt/security/helpdesk_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,47 +56,47 @@
<field name="global" eval="True" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
>[('company_id', 'in', company_ids + [False])]</field>
</record>
<record id="helpdesk_ticket_category_comp_rule" model="ir.rule">
<field name="name">Helpdesk Category Company Rule</field>
<field name="model_id" ref="model_helpdesk_ticket_category" />
<field name="global" eval="True" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
>[('company_id', 'in', company_ids + [False])]</field>
</record>
<record id="helpdesk_ticket_channel_comp_rule" model="ir.rule">
<field name="name">Helpdesk Channel Company Rule</field>
<field name="model_id" ref="model_helpdesk_ticket_channel" />
<field name="global" eval="True" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
>[('company_id', 'in', company_ids + [False])]</field>
</record>
<record id="helpdesk_ticket_stage_comp_rule" model="ir.rule">
<field name="name">Helpdesk Stage Company Rule</field>
<field name="model_id" ref="model_helpdesk_ticket_stage" />
<field name="global" eval="True" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
>[('company_id', 'in', company_ids + [False])]</field>
</record>
<record id="helpdesk_ticket_tag_comp_rule" model="ir.rule">
<field name="name">Helpdesk Tag Company Rule</field>
<field name="model_id" ref="model_helpdesk_ticket_tag" />
<field name="global" eval="True" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
>[('company_id', 'in', company_ids + [False])]</field>
</record>
<record id="helpdesk_ticket_team_comp_rule" model="ir.rule">
<field name="name">Helpdesk Team Company Rule</field>
<field name="model_id" ref="model_helpdesk_ticket_team" />
<field name="global" eval="True" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
>[('company_id', 'in', company_ids + [False])]</field>
</record>
<record id="helpdesk_ticket_team_portal_rule" model="ir.rule">
<field name="name">Helpdesk Team Portal Rule</field>
Expand Down
Binary file modified helpdesk_mgmt/static/description/Categories.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified helpdesk_mgmt/static/description/Channels.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified helpdesk_mgmt/static/description/Stage.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified helpdesk_mgmt/static/description/Tags.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified helpdesk_mgmt/static/description/Teams.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified helpdesk_mgmt/static/description/Tickets01.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified helpdesk_mgmt/static/description/Tickets02.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed helpdesk_mgmt/static/description/Tickets03.PNG
Binary file not shown.
Binary file modified helpdesk_mgmt/static/description/Tickets_Kanban.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion helpdesk_mgmt/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ <h1><a class="toc-backref" href="#toc-entry-8">Usage</a></h1>
<li>Add a description.</li>
<li>You can also attach files to the ticket.</li>
</ol>
<p><img alt="Tickets01" src="https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets01.PNG" /></p>
<p><img alt="Tickets01" src="https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets01.PNG" /> <img alt="Tickets02" src="https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets02.PNG" /></p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-9">Known issues / Roadmap</a></h1>
Expand Down Expand Up @@ -591,6 +591,10 @@ <h2><a class="toc-backref" href="#toc-entry-13">Contributors</a></h2>
<li>Houzéfa Abbasbhay</li>
</ul>
</li>
<li><a class="reference external" href="https://kencove.com">Kencove</a>:<ul>
<li>Mohamed Alkobrosli</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
2 changes: 1 addition & 1 deletion helpdesk_mgmt/views/helpdesk_dashboard_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<field name="todo_ticket_count_unattended" />
<field name="todo_ticket_count_high_priority" />
<templates>
<t t-name="kanban-menu">
<t t-name="menu">
<div class="o_kanban_card_manage_section">
<div role="menuitem" class="o_kanban_manage_reports">
<div class="o_kanban_card_manage_title ps-4 pb-1">
Expand Down
1 change: 0 additions & 1 deletion helpdesk_mgmt/views/helpdesk_ticket_stage_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
</div>
<group name="main">
<group name="main_left">
<field name="sequence" />
<field name="mail_template_id" />
<field name="team_ids" widget="many2many_tags" />
<field
Expand Down
36 changes: 14 additions & 22 deletions helpdesk_mgmt/views/helpdesk_ticket_team_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,28 +111,20 @@
<field name="id" />
<field name="name" />
<templates>
<t t-name="kanban-box">
<div
class="oe_kanban_global_click"
style="max-width: 200px"
>
<div class="o_kanban_record_top">
<img
t-att-src="kanban_image('res.users', 'image_128', record.id.raw_value)"
class="oe_avatar oe_kanban_avatar_smallbox o_image_40_cover mb0"
alt="Avatar"
/>
<div
class="o_kanban_record_headings ml8"
>
<strong
class="o_kanban_record_title"
>
<field name="name" />
</strong>
</div>
</div>
</div>
<t t-name="card" class="flex-row">
<aside class="o_kanban_aside_full">
<field
name="avatar_128"
class="o_kanban_image_fill w-100"
widget="image"
options="{'img_class': 'object-fit-cover'}"
alt="Avatar"
/>
</aside>

<main class="ps-2 ps-md-0">
<field name="name" class="fw-bold" />
</main>
</t>
</templates>
</kanban>
Expand Down
1 change: 1 addition & 0 deletions helpdesk_mgmt/views/helpdesk_ticket_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@
/>
<field name="activity_ids" widget="kanban_activity" />
</div>
<field name="kanban_state" widget="state_selection" />
<field
name="user_id"
widget="many2one_avatar_user"
Expand Down

0 comments on commit 70b7f07

Please sign in to comment.