Skip to content

Conversation

@hoangtrann
Copy link

No description provided.

hgarridoco and others added 30 commits August 28, 2025 18:16
Currently translated at 90.0% (27 of 30 strings)

Translation: helpdesk-13.0/helpdesk-13.0-helpdesk_mgmt_sla
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-13-0/helpdesk-13-0-helpdesk_mgmt_sla/es/
Currently translated at 100.0% (30 of 30 strings)

Translation: helpdesk-14.0/helpdesk-14.0-helpdesk_mgmt_sla
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_sla/es_AR/
Implement more advanced rules to filter the tickets it applies to.
Additionally, the stage_id field is removed as it wasn't used.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: helpdesk-14.0/helpdesk-14.0-helpdesk_mgmt_sla
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_sla/
Currently translated at 100.0% (73 of 73 strings)

Translation: helpdesk-14.0/helpdesk-14.0-helpdesk_mgmt_sla
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_sla/es_AR/

Added translation using Weblate (Italian)
Currently translated at 100.0% (73 of 73 strings)

Translation: helpdesk-14.0/helpdesk-14.0-helpdesk_mgmt_sla
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_sla/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: helpdesk-14.0/helpdesk-14.0-helpdesk_mgmt_sla
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_sla/
Currently translated at 100.0% (72 of 72 strings)

Translation: helpdesk-16.0/helpdesk-16.0-helpdesk_mgmt_sla
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-16-0/helpdesk-16-0-helpdesk_mgmt_sla/it/
@hoangtrann hoangtrann force-pushed the 17.0-mig-helpdesk_mgmt_sla branch from 2877bf8 to f3c6c5b Compare August 28, 2025 12:18
@hoangtrann hoangtrann force-pushed the 17.0-mig-helpdesk_mgmt_sla branch from f3c6c5b to 7a95550 Compare August 28, 2025 12:25
@hoangtrann
Copy link
Author

@marcelsavegnago could you have a look?

Copy link

@rrebollo rrebollo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review: Great work! The code looks good to me (LGTM). Thank you for your contribution! I've provided a few suggestions for your consideration—feel free to address them as you see fit.

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="0">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<odoo noupdate="0">
<odoo>

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="0">
<record id="helpdesk_mgmt.helpdesk_team_2" model="helpdesk.ticket.team">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<record id="helpdesk_mgmt.helpdesk_team_2" model="helpdesk.ticket.team">
<record id="helpdesk_team_2" model="helpdesk.ticket.team">

break

def check_ticket_sla(self, tickets):
for ticket in tickets:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for ticket in tickets:
self.ensure_one()
for ticket in tickets:

class HelpdeskTicket(models.Model):
_inherit = "helpdesk.ticket"

team_sla = fields.Boolean(string="Team SLA", compute="_compute_team_sla")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
team_sla = fields.Boolean(string="Team SLA", compute="_compute_team_sla")
team_sla = fields.Boolean(string="Team SLA", related="team_id.use_sla")

Comment on lines +14 to +16
def _compute_team_sla(self):
for rec in self:
rec.team_sla = rec.team_id.use_sla

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def _compute_team_sla(self):
for rec in self:
rec.team_sla = rec.team_id.use_sla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.