-
-
Notifications
You must be signed in to change notification settings - Fork 827
[18.0][MIG] project_task_add_very_high: Migration to 18.0 #1400
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
[18.0][MIG] project_task_add_very_high: Migration to 18.0 #1400
Conversation
a77f177
to
503f036
Compare
503f036
to
6ed63dc
Compare
Hello @HeliconiaSolutions What's the state here? |
ADD pre-commit Renaming of priorities.
Currently translated at 100.0% (4 of 4 strings) Translation: project-17.0/project-17.0-project_task_add_very_high Translate-URL: https://translation.odoo-community.org/projects/project-17-0/project-17-0-project_task_add_very_high/sv/
6ed63dc
to
c7f66f1
Compare
project_task_add_very_high/hooks.py
Outdated
def uninstall_hook(env): | ||
# Convert priority from High and Very High to Normal | ||
# to avoid inconsistency after the module is uninstalled | ||
env["project.task"].sudo().search([("priority", "in", ["2", "3"])]).write( |
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.
Still usefull?
You have the ondelete={SUPPLIERINFO_MAX: "set 1"}
who is doing the same without any hooks.
_inherit = "project.task" | ||
|
||
priority = fields.Selection( | ||
selection_add=[("2", "Very High"), ("3", "Most Important")] |
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.
cfr previous comment 🙏
from odoo.tests.common import TransactionCase | ||
|
||
|
||
class TestProjectTaskPriority(TransactionCase): |
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.
Please use BaseCommon
from odoo.addons.base.tests.common import BaseCommon
.
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-18.0#tasks-to-do-in-the-migration
@BhaveshHeliconia Can you fix it please? |
c7f66f1
to
f73cebb
Compare
f73cebb
to
d078c5a
Compare
@acsonefho, Please Review.i updated test case and hook issue. |
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.
Nice 💪
@OCA/project-service-maintainers Someone can merge it please? Already have 3 👍 . |
/ocabot migration project_task_add_very_high |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at de8ea9d. Thanks a lot for contributing to OCA. ❤️ |
No description provided.