Skip to content
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

[17.0][MIG] project_template: Migration to 17.0 #1245

Open
wants to merge 59 commits into
base: 17.0
Choose a base branch
from

Conversation

aisopuro
Copy link

@aisopuro aisopuro commented Mar 5, 2024

No description provided.

@aisopuro
Copy link
Author

aisopuro commented Mar 5, 2024

Includes a fix for an issue I detected in the code.

Based on codecov's reports, it seems like the only way to increase coverage is to add a bunch of dumb tests like "check we don't do anything if the project doesn't have a name". Could the maintainers give an opinion as to whether it is actually necessary to hit these coverage targets on migration PRs?

@aisopuro
Copy link
Author

aisopuro commented Mar 6, 2024

Rebased on 17.0 and re-ran pre-commit.

@aisopuro aisopuro mentioned this pull request Apr 25, 2024
28 tasks
Copy link
Member

@Abranes Abranes left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@GuillemCForgeFlow GuillemCForgeFlow left a comment

Choose a reason for hiding this comment

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

code review LGTM 👍🏿

@jaenbox
Copy link

jaenbox commented Oct 13, 2024

LGTM

Copy link

@houssine78 houssine78 left a comment

Choose a reason for hiding this comment

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

LGTM

@houssine78
Copy link

@dreispt this one is ready for being merge :)

@houssine78
Copy link

@pedrobaeza this PR is ready too. Thank you !

@pedrobaeza
Copy link
Member

/ocabot migration project_template

Merging due to existing reviews:

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-1245-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Nov 21, 2024
OCA-git-bot added a commit that referenced this pull request Nov 21, 2024
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 17.0-ocabot-merge-pr-1245-by-pedrobaeza-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member

Please rebase and check the CI failure.

@houssine78
Copy link

@aisopuro could you rebase your PR please ?

patrickrwilson and others added 8 commits November 21, 2024 15:39
Adding new Project Template Module

[FIX] PEP8 Errors

Revert "[FIX] PEP8 Errors"

This reverts commit 90f9cd9.

[FIX] Fixed PEP8 Formatting

First upload tests showed some lint issues which this commit has the fixes for.

[FIX] Fixed LINT Issue

Removed unreachable code that was not needed.

[FIX] RunBot Warning

Fixed runbot warning about @Class to hasclass

[UPD] Suggested Changes

Updated based on suggested changes on other submitted modules.

[UPD] Manifest and Readme

Updated Manifest and Readme based on comments on other module pr's.

[UPD] Suggested Changes

Updated code based on suggested code changes from reviewer.

[FIX] Creation Error

Fixed create project error when creating project via configuration/projects menu

[UPD] Menu and Bool Change

Removed Template Menu (Filter option still there) and moved Bool up below name. (From reviewer suggestions)

[UPD] Kanban Menu

Removed button, added link to kanban menu. Start of tests

[UPD] Remove project_milestone code

Removed the project_milestone code and will create a separate module for that purpose.
Currently translated at 100.0% (7 of 7 strings)

Translation: project-12.0/project-12.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-12-0/project-12-0-project_template/es/
ibuioli and others added 27 commits November 21, 2024 15:39
Currently translated at 100.0% (10 of 10 strings)

Translation: project-14.0/project-14.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_template/es_AR/
Currently translated at 100.0% (7 of 7 strings)

Translation: project-14.0/project-14.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_template/fr/
Currently translated at 70.0% (7 of 10 strings)

Translation: project-14.0/project-14.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_template/fr_FR/
Currently translated at 100.0% (10 of 10 strings)

Translation: project-14.0/project-14.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_template/de/
Currently translated at 100.0% (10 of 10 strings)

Translation: project-14.0/project-14.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_template/sv/
Since in  original odoo `15.0` version project subtasks
has been deleted so changes also done in this module.
We don't need project subtasks anymore because odoo don't have it.
Currently translated at 100.0% (10 of 10 strings)

Translation: project-16.0/project-16.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_template/de/
Currently translated at 100.0% (7 of 7 strings)

Translation: project-16.0/project-16.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_template/hr/
Currently translated at 100.0% (7 of 7 strings)

Translation: project-16.0/project-16.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_template/it/
Currently translated at 100.0% (7 of 7 strings)

Translation: project-16.0/project-16.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_template/pt_BR/
Currently translated at 85.7% (6 of 7 strings)

Translation: project-16.0/project-16.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_template/nl/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: project-16.0/project-16.0-project_template
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_template/
Previously, if multiple tasks in a template project had the same name,
their end_date-values were not copied properly.
@houssine78
Copy link

@aisopuro you have test that are failing. any chance that you get time to look at it ?

@aisopuro
Copy link
Author

Unlikely unfortunately. I am swamped with other work: if someone needs this I recommend making your own PR where you fix the test.

The failing test is test_create_project_from_template_duplicate_task_names, which now seems to not get any dates from the tasks of the project generated from the template. Don't know if its a bug in the functionality (the dates are actually not propagated) or in the test (the search for the project fails to find the generated project because the naming of it has changed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.