[19.0][MIG] helpdesk_mgmt_sla: Migration to 19.0 - #1012
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.
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/
Currently translated at 50.6% (37 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/
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/
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/
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/
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/
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/
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/
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/
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/
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/
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/
Currently translated at 100.0% (72 of 72 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/
Currently translated at 100.0% (72 of 72 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/
Currently translated at 100.0% (72 of 72 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/
Currently translated at 100.0% (72 of 72 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/
Currently translated at 100.0% (72 of 72 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/
Currently translated at 95.8% (69 of 72 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/tr/
|
The migration was performed from scratch, preserving the history as Pedro mentioned. |
36f525d to
580d98d
Compare
|
/ocabot migration helpdesk_mgmt_sla |
BhaveshHeliconia
left a comment
There was a problem hiding this comment.
@Tomero-Dev Please squash the commits as explained here: https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate
580d98d to
5ab553e
Compare
|
@BhaveshHeliconia I've applied and merged the latest Weblate commits. These are my first verified contributions, and I'm still figuring out exactly what needs to be done. Thanks. |
|
@Tomero-Dev It’s still not fully done. Please check the documentation carefully. If you get stuck or need any help, feel free to let me know — I’ll be happy to help. |
skanndar
left a comment
There was a problem hiding this comment.
Functional review on a clean 19.0 database — LGTM, with two small remarks.
What I tested: official odoo:19 image, fresh database, --without-demo, this PR's branch for helpdesk_mgmt_sla plus helpdesk_mgmt from the 19.0 branch.
- the module installs cleanly and its test suite passes (
0 failed, 0 error(s)) - creating a ticket in a team with
use_slaapplies the matching SLA and computes the deadline from the team calendar (24x7 calendar + 4h SLA →deadline = create_date + 4h) - moving the clock 5 hours forward:
expiredandsla_expiredboth becomeTrue, andsearch([('expired', '=', True)])/search([('expired', '!=', True)])include and exclude the record correctly, as doessearch([('sla_expired', '=', True)])on tickets - moving the ticket to the expected stage sets the line to
accomplished refresh_sla()andhelpdesk.sla.reportbehave as expected
1. test_failed_query no longer covers the guard it was written for. In 18.0 it asserted that an invalid operator reaches _search_expired and raises UserError:
with self.assertRaises(UserError):
self.env["helpdesk.ticket.sla"].search([("expired", ">", True)])That cannot be kept as-is in 19.0 — I checked, the ORM rejects the domain earlier with ValueError: Cannot compare 'expired' to <class 'bool'> ..., so _search_expired is never reached. The replacement asserts a successful search instead, so the if operator not in ["=", "!="]: raise UserError guard — which the port still has — is not covered by any test anymore. Calling the search method directly keeps the original intent:
def test_failed_query(self):
with self.assertRaises(UserError):
self.env["helpdesk.ticket.sla"]._search_expired(">", True)2. test-requirements.txt looks droppable now. It pins odoo-addon-helpdesk_mgmt to refs/pull/978/head, but that migration is merged and odoo-addon-helpdesk-mgmt 19.0.1.1.1 is on PyPI, which is why Detect unreleased dependencies is the only red check. Removing that [DON'T MERGE] commit should turn CI green — that plus the squash @BhaveshHeliconia asked for looks like all that is left.
|
@Tomero-Dev can you check the last comments? |
5ab553e to
7f4c919
Compare
etobella
left a comment
There was a problem hiding this comment.
I removed the DO NOT MERGE Commit as the dependancy has been merged 😉
|
This PR has the |
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at 40fdc71. Thanks a lot for contributing to OCA. ❤️ |
No description provided.