project
project copied to clipboard
Migration to version 15.0
Todo
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0
Modules to migrate
- [x] ~~project_category - By @emagdalenaC2i - #872~~ - Included in Odoo Core
- [x] project_administrator_restricted_visibility - By @pilarvargas-tecnativa - #1143
- [ ] project_deadline - By @bizzappdev - #895
- [x] project_department - By @sts-vaidehi - #932
- [x] project_duplicate_subtask - By @mariadforgeflow - #867
- [ ] project_gtd - By @bizzappdev - #1080
- [x] project_hr - By @chandni299 - #1058
- [ ] project_key - By @vincent-hatakeyama - #1257
- [x] project_list - By @emagdalenaC2i - #875
- [x] project_milestone - By @Mantux11 - #889
- [x] project_parent_task_filter - By @mariadforgeflow - #868
- [x] project_role - By @alexey-pelykh - #949
- [x] ~~project_stage_closed - By @bizzappdev - #897~~ (deprecated)
- [x] project_stage_state - By @manuelregidor - #916
- [x] project_status - By @igallart - #923
- [x] project_stock - By @victoralmau - #1020
- [x] project_stock_product_set - By @victoralmau - #1023
- [ ] project_stock_request - By @bizzappdev - #1078
- [ ] project_tag
- [x] project_task_add_very_high - By @emagdalenaC2i - #874
- [x] project_task_code - By @bizzappdev - #899
- [x] project_task_default_stage - By @emagdalenaC2i - #873
- [x] project_task_dependency - By @Mantux11 - #892
- [ ] project_task_digitized_signature - By @bizzappdev - #1079
- [x] project_task_material - By @bizzappdev - #898
- [x] project_task_pull_request - By @bizzappdev - #900
- [x] project_template - By @Mantux11 - #887
- [x] project_timeline - By @cesar-tecnativa - #942
- [x] ~~project_timeline_task_dependency~~ Integrated into
project_timeline - [x] project_timeline_hr_timesheet - By @victoralmau - #1088
- [x] project_timesheet_time_control - By @CarlosRoca13 - #989
- [x] project_wbs - By @JasminSForgeFlow - #1070
Missing module? Check https://github.com/OCA/maintainer-tools/wiki/%5BFAQ%5D-Missing-modules-in-migration-issue-list
Hello, as far as I could check, the functionalities of these two modules are now in Odoo: "project_task_dependency" and "project_timeline_task_dependency". Attached I left pictures, and the code could be checked here: https://github.com/odoo/odoo/tree/15.0/addons/project In particular, the mention to the task dependencies are here: https://github.com/odoo/odoo/blob/15.0/addons/project/models/project.py#L98
But that's for enterprise one. Probably the dependency module is not needed now as Odoo supports it, but the extension (or integrated in the main module project_timeline) is still needed for displaying in such view the dependencies.
But that's for enterprise one. Probably the dependency module is not needed now as Odoo supports it, but the extension (or integrated in the main module
project_timeline) is still needed for displaying in such view the dependencies.
Rigth, my mistake, I checked the first one and file to check the second one. Summing up, "project_task_dependency" is now in odoo community
Migrating:
project_tag is now in odoo community https://github.com/odoo/odoo/blob/15.0/addons/project/models/project.py#L285 https://github.com/odoo/odoo/blob/15.0/addons/project/views/project_views.xml#L348
I'll migrate project_milestone. But there is some questions. In Odoo 15.0 is project.milestone model, what to do with that? Also, there is some fields that matches original Odoo code. So what do you think about that? Thanks:) @OCA/project-service-maintainers
Isn't enough then with standard? The module as is doesn't make sense to be migrated. Maybe you can add a different extra module with some missing features in the standard.
Standard doesn't link tasks with milestones like OCA one does. So if someone is already using OCA module and it gets discontinued, migrating to v15 would mean loss of data. Even renaming here would be kind of tricky. How about we migrate the module with migration scripts that adapt OCA module fields to standard as close as possible, while keeping additional ones and the module name?
Why not creating then project_task_milestone with such feature and do the migration scripts/renaming in OpenUpgrade?
Sure thing. Tho, how would one rename a module in migration scripts?
Is there a guide we could refer to?
As I imagine, you would still make a dummy project_milestone module that just has the migration script with dependency for the new module?
Also, I will migrate project.template until we decide what to do with project.milestone module.
Renames are managed in this file of OpenUpgrade: https://github.com/OCA/OpenUpgrade/blob/14.0/openupgrade_scripts/apriori.py
project_template #887
@pedrobaeza @gaikaz #888. I have created a PR with project_task_milestone module. Later I'll do migration scripts on project_milestone.
@pedrobaeza @gaikaz I have created a PR #889 only with migration scripts. Everything is deleted and for later versions this module would not be migrated.
But that's for enterprise one. Probably the dependency module is not needed now as Odoo supports it, but the extension (or integrated in the main module
project_timeline) is still needed for displaying in such view the dependencies.Rigth, my mistake, I checked the first one and file to check the second one. Summing up, "project_task_dependency" is now in odoo community
Hi @georginacicerchia, you think that there is no need to migrate that module?
@georginacicerchia @BT-rfresco I suppose we do need to migrate the module, so that there is a migration script to adapt old data to standard. After that the module could be uninstalled. @OCA/project-service-maintainers Some input here would be really appreciated 🙂
project_deadline #895
project_task_material #898 project_stage_closed #897 project_role #896
project_task_pull_request #900 project_task_code #899
But that's for enterprise one. Probably the dependency module is not needed now as Odoo supports it, but the extension (or integrated in the main module
project_timeline) is still needed for displaying in such view the dependencies.Rigth, my mistake, I checked the first one and file to check the second one. Summing up, "project_task_dependency" is now in odoo community
Hi @georginacicerchia, you think that there is no need to migrate that module?
Hi there, how are you? Odoo has include that function. Can't really say if technically there has to be a migration script, sorry :/
But that's for enterprise one. Probably the dependency module is not needed now as Odoo supports it, but the extension (or integrated in the main module
project_timeline) is still needed for displaying in such view the dependencies.Rigth, my mistake, I checked the first one and file to check the second one. Summing up, "project_task_dependency" is now in odoo community
Hi @georginacicerchia, you think that there is no need to migrate that module?
Hi there, how are you? Odoo has include that function. Can't really say if technically there has to be a migration script, sorry :/
Yes, these two queries are needed:
UPDATE project_project SET allow_task_dependencies=true
WHERE id in (SELECT project_id FROM project_task WHERE id in (SELECT task_id FROM project_task_dependency_task_rel));
INSERT INTO task_dependencies_rel (task_id, depends_on_id)
SELECT task_id, dependency_task_id
FROM project_task_dependency_task_rel;
However, I don't know where this should be included. @pedrobaeza can you advice me, please?
Sources: https://github.com/odoo/odoo/blob/ff50844da0e4423372746e767f482a2a71148be4/addons/project/models/project.py#L994 and https://github.com/OCA/project/blob/8dbaeda24b6ea712baea8f191b2b124909b46c23/project_task_dependency/models/project_task.py#L12
@Mantux11 and me Might have forgotten to comment here, but module project_task_dependency is in PR (https://github.com/OCA/project/pull/892) for migration to v15. It only includes the migration script to move the data between the tables (just like @BT-aestebanez wrote). After that it can be uninstalled.
Will "Markdown On Project Tasks " be migrated?
Migrating:
project_department #932