Skip to content

[18.0][FIX] project_task_stock: improve order of project.task o2m - #1770

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-project_task_stock
Jul 13, 2026
Merged

[18.0][FIX] project_task_stock: improve order of project.task o2m#1770
OCA-git-bot merged 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-project_task_stock

Conversation

@eduezerouali-tecnativa

@eduezerouali-tecnativa eduezerouali-tecnativa commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

cc @Tecnativa TT63680
ping @pedrobaeza

The embedded list for move_ids uses default_order="sequence", which the web
client forwards as the x2many order, replacing the comodel's _order
(sequence, id). All moves default to sequence = 10, so the lines are tied
and PostgreSQL returns them in arbitrary order.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @victoralmau,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:18.0 mod:project_task_stock Module project_task_stock labels Jul 13, 2026
@pedrobaeza pedrobaeza added this to the 18.0 milestone Jul 13, 2026
<list
editable="bottom"
default_order="sequence"
default_order="sequence, id"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But why not simply removing this and letting the model order to act?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

true, orm will do the same. Changed.

@eduezerouali-tecnativa
eduezerouali-tecnativa force-pushed the 18.0-fix-project_task_stock branch from 50cba7e to 291cb8a Compare July 13, 2026 10:54
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-1770-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit b71d802 into OCA:18.0 Jul 13, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

4 participants