project icon indicating copy to clipboard operation
project copied to clipboard

Migration to version 15.0

Open OCA-git-bot opened this issue 4 years ago • 35 comments
trafficstars

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

OCA-git-bot avatar Oct 17 '21 10:10 OCA-git-bot

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

georginacicerchia avatar Dec 28 '21 20:12 georginacicerchia

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.

pedrobaeza avatar Dec 29 '21 09:12 pedrobaeza

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

georginacicerchia avatar Dec 29 '21 12:12 georginacicerchia

Migrating:

emagdalenaC2i avatar Jan 01 '22 22:01 emagdalenaC2i

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

georginacicerchia avatar Jan 05 '22 16:01 georginacicerchia

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

Mantux11 avatar Jan 25 '22 07:01 Mantux11

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.

pedrobaeza avatar Jan 25 '22 07:01 pedrobaeza

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?

gaikaz avatar Jan 25 '22 08:01 gaikaz

Why not creating then project_task_milestone with such feature and do the migration scripts/renaming in OpenUpgrade?

pedrobaeza avatar Jan 25 '22 08:01 pedrobaeza

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?

gaikaz avatar Jan 25 '22 08:01 gaikaz

Also, I will migrate project.template until we decide what to do with project.milestone module.

Mantux11 avatar Jan 25 '22 08:01 Mantux11

Renames are managed in this file of OpenUpgrade: https://github.com/OCA/OpenUpgrade/blob/14.0/openupgrade_scripts/apriori.py

pedrobaeza avatar Jan 25 '22 11:01 pedrobaeza

project_template #887

Mantux11 avatar Jan 25 '22 13:01 Mantux11

@pedrobaeza @gaikaz #888. I have created a PR with project_task_milestone module. Later I'll do migration scripts on project_milestone.

Mantux11 avatar Jan 25 '22 15:01 Mantux11

@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.

Mantux11 avatar Jan 26 '22 09:01 Mantux11

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?

ghost avatar Jan 31 '22 13:01 ghost

@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 🙂

gaikaz avatar Feb 02 '22 12:02 gaikaz

project_deadline #895

bizzappdev avatar Feb 07 '22 06:02 bizzappdev

project_task_material #898 project_stage_closed #897 project_role #896

bizzappdev avatar Feb 09 '22 04:02 bizzappdev

project_task_pull_request #900 project_task_code #899

bizzappdev avatar Feb 10 '22 11:02 bizzappdev

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 :/

georginacicerchia avatar Feb 15 '22 19:02 georginacicerchia

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

BT-aestebanez avatar Feb 18 '22 12:02 BT-aestebanez

@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.

gaikaz avatar Feb 18 '22 13:02 gaikaz

Will "Markdown On Project Tasks " be migrated?

GongSiqiu avatar Jun 08 '22 07:06 GongSiqiu

Migrating: project_department #932

sts-vaidehi avatar Jun 13 '22 13:06 sts-vaidehi