-
-
Notifications
You must be signed in to change notification settings - Fork 405
[17.0][MIG] helpdesk_mgmt_sla: Migration to 17.0 #826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 17.0
Are you sure you want to change the base?
Conversation
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/
Currently translated at 100.0% (69 of 69 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/pt_BR/
2877bf8 to
f3c6c5b
Compare
f3c6c5b to
7a95550
Compare
|
@marcelsavegnago could you have a look? |
rrebollo
left a comment
There was a problem hiding this 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"> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <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"> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| team_sla = fields.Boolean(string="Team SLA", compute="_compute_team_sla") | |
| team_sla = fields.Boolean(string="Team SLA", related="team_id.use_sla") |
| def _compute_team_sla(self): | ||
| for rec in self: | ||
| rec.team_sla = rec.team_id.use_sla |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def _compute_team_sla(self): | |
| for rec in self: | |
| rec.team_sla = rec.team_id.use_sla |
No description provided.