Skip to content

[19.0][MIG] helpdesk_mgmt_sla: Migration to 19.0 - #1012

Merged
OCA-git-bot merged 50 commits into
OCA:19.0from
Tomero-Dev:19.0-mig-helpdesk_mgmt_sla
Sep 11, 2026
Merged

[19.0][MIG] helpdesk_mgmt_sla: Migration to 19.0#1012
OCA-git-bot merged 50 commits into
OCA:19.0from
Tomero-Dev:19.0-mig-helpdesk_mgmt_sla

Conversation

@Tomero-Dev

Copy link
Copy Markdown

No description provided.

hgarridoco and others added 30 commits May 26, 2026 12:36
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/
@Tomero-Dev

Copy link
Copy Markdown
Author

The migration was performed from scratch, preserving the history as Pedro mentioned.
The dependencies were added to the test-requirements file.

@Tomero-Dev
Tomero-Dev force-pushed the 19.0-mig-helpdesk_mgmt_sla branch 2 times, most recently from 36f525d to 580d98d Compare May 26, 2026 14:45
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration helpdesk_mgmt_sla

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone May 26, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request May 26, 2026
21 tasks

@Yoana-RB Yoana-RB left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM Functional review!

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Tomero-Dev
Tomero-Dev force-pushed the 19.0-mig-helpdesk_mgmt_sla branch from 580d98d to 5ab553e Compare May 29, 2026 08:00
@Tomero-Dev

Copy link
Copy Markdown
Author

@BhaveshHeliconia I've applied and merged the latest Weblate commits.
I hope this is sufficient.

These are my first verified contributions, and I'm still figuring out exactly what needs to be done.

Thanks.

@BhaveshHeliconia

Copy link
Copy Markdown
Contributor

@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 skanndar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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_sla applies 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: expired and sla_expired both become True, and search([('expired', '=', True)]) / search([('expired', '!=', True)]) include and exclude the record correctly, as does search([('sla_expired', '=', True)]) on tickets
  • moving the ticket to the expected stage sets the line to accomplished
  • refresh_sla() and helpdesk.sla.report behave 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.

@etobella

etobella commented Sep 4, 2026

Copy link
Copy Markdown
Member

@Tomero-Dev can you check the last comments?

@etobella
etobella force-pushed the 19.0-mig-helpdesk_mgmt_sla branch from 5ab553e to 7f4c919 Compare September 9, 2026 07:14

@etobella etobella left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I removed the DO NOT MERGE Commit as the dependancy has been merged 😉

@marcelsavegnago marcelsavegnago left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@marcelsavegnago

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-1012-by-marcelsavegnago-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 9893c9e into OCA:19.0 Sep 11, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 40fdc71. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.