Skip to content

[18.0][MIG] project_status: Migration to 18.0 #1555

Merged
OCA-git-bot merged 35 commits intoOCA:18.0from
Ricardo-MC:18.0-mig-project_status
Apr 10, 2026
Merged

[18.0][MIG] project_status: Migration to 18.0 #1555
OCA-git-bot merged 35 commits intoOCA:18.0from
Ricardo-MC:18.0-mig-project_status

Conversation

@Ricardo-MC
Copy link
Copy Markdown
Contributor

No description provided.

@Ricardo-MC Ricardo-MC changed the title [18.0][MIG] project status: Migration to 18.0 [18.0][MIG] project_status: Migration to 18.0 Aug 22, 2025
@Ricardo-MC Ricardo-MC mentioned this pull request Aug 22, 2025
44 tasks
Copy link
Copy Markdown

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

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

I have this error in runbot when accessing any project:

  File "/mnt/data/odoo-addons-dir/project_status/models/project.py", line 13, in _read_group_status_ids
    env["project.status"].with_user(SUPERUSER_ID)._search(domain, order=order)
  File "/opt/odoo/odoo/models.py", line 5814, in _search
    query.order = self._order_to_sql(order, query)
  File "/opt/odoo/odoo/models.py", line 5600, in _order_to_sql
    self._check_qorder(order)
  File "/opt/odoo/odoo/models.py", line 5566, in _check_qorder
    if not regex_order.match(word):
TypeError: expected string or bytes-like object

@Ricardo-MC Ricardo-MC force-pushed the 18.0-mig-project_status branch from 13353d7 to a0ce154 Compare August 27, 2025 13:33
@Ricardo-MC
Copy link
Copy Markdown
Contributor Author

@AaronHForgeFlow,
Thank you for the feedback!
You are right, the error occurs because order is not always a string.
I will update the code to check if order is a string, and if not, set it to "" before passing it to _search:
This will prevent the TypeError and make the method robust for all internal Odoo calls.
Let me know if you have any other suggestions!

@github-actions
Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 28, 2025
@Ricardo-MC Ricardo-MC force-pushed the 18.0-mig-project_status branch from a0ce154 to 6bf7529 Compare January 16, 2026 20:48
@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jan 18, 2026
Comment thread project_status/models/project.py Outdated
@Ricardo-MC Ricardo-MC force-pushed the 18.0-mig-project_status branch 3 times, most recently from 2f19479 to c883de7 Compare February 12, 2026 20:31
@leemannd
Copy link
Copy Markdown
Contributor

/ocabot migration project_status

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Feb 24, 2026
Copy link
Copy Markdown
Member

@CristianoMafraJunior CristianoMafraJunior left a comment

Choose a reason for hiding this comment

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

LGTM

@leemannd
Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-1555-by-leemannd-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Feb 26, 2026
Signed-off-by leemannd
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@leemannd your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-1555-by-leemannd-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.

Copy link
Copy Markdown
Contributor

@alexey-pelykh alexey-pelykh left a comment

Choose a reason for hiding this comment

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

Thanks for the migration, looks good overall.

CI is green on the PR branch. The merge-attempt failure (project_assignment / project_sequence unique constraint violations) is unrelated to this module -- likely a transient conflict with other modules being merged in parallel.

The codecov/project failure is a repo-wide coverage threshold, not specific to this PR.

Code-wise, everything is clean for 18.0:

  • _read_group_status_ids signature is correct for the new group_expand callback API
  • Security rules and multi-company support are properly implemented
  • Views use appropriate 18.0 XML patterns
  • Tests cover the core flow and exercise _read_group_status_ids directly

One minor observation (non-blocking): using ir.sequence for status_sequence ordering is a bit unconventional compared to a plain integer field with drag-to-reorder, but it works fine as-is.

Ready to merge once the unrelated CI conflict is resolved (re-trigger the merge command should be enough).

Copy link
Copy Markdown
Contributor

@BhaveshHeliconia BhaveshHeliconia left a comment

Choose a reason for hiding this comment

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

Functional review LGTM

@leemannd
Copy link
Copy Markdown
Contributor

/ocabot rebase

@OCA-git-bot
Copy link
Copy Markdown
Contributor

@leemannd The rebase process failed, because command git push --force Ricardo-MC tmp-pr-1555:18.0-mig-project_status failed with output:

remote: Permission to Ricardo-MC/project.git denied to OCA-git-bot.
fatal: unable to access 'https://github.com/Ricardo-MC/project/': The requested URL returned error: 403

patrickrwilson and others added 4 commits April 9, 2026 14:12
[FIX] Runbot Errors

Fixed errors discovered by runbot

[FIX] _description

Fixed missing _description in project_status

[FIX] Suggested Fixes

More fixes from suggestions in comments

[FIX] sequence change

Slight change to status sequence code, added 'or 0'

[UPD] readme

[UPD] LINT Error

Fixed LINT Error and updated view id's as suggested in review.

[UPD] Update project_status.pot
[MIG] project_status: Migration to 14.0
Yvesldff and others added 21 commits April 9, 2026 14:12
Currently translated at 100.0% (25 of 25 strings)

Translation: project-14.0/project-14.0-project_status
Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_status/fr_FR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

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

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

Translation: project-14.0/project-14.0-project_status
Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_status/de/
Currently translated at 92.3% (24 of 26 strings)

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

Translation: project-16.0/project-16.0-project_status
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_status/it/
@Ricardo-MC Ricardo-MC force-pushed the 18.0-mig-project_status branch from c883de7 to 52599a0 Compare April 9, 2026 18:12
@Ricardo-MC
Copy link
Copy Markdown
Contributor Author

Ricardo-MC commented Apr 9, 2026

Hi @leemannd, could you try the merge again please

@leemannd
Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-1555-by-leemannd-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 796d8be into OCA:18.0 Apr 10, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at ea65b6a. 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.