Skip to content

[18.0] [MIG] sale_order_line_chained_move#3590

Merged
OCA-git-bot merged 12 commits intoOCA:18.0from
acsone:18.0-mig-sale_order_line_chained_move
Oct 13, 2025
Merged

[18.0] [MIG] sale_order_line_chained_move#3590
OCA-git-bot merged 12 commits intoOCA:18.0from
acsone:18.0-mig-sale_order_line_chained_move

Conversation

@marielejeune
Copy link
Contributor

@marielejeune marielejeune commented Feb 24, 2025

Migration from v15.
Delete demo data and properly define test data inside setUpClass

rousseldenis and others added 12 commits February 20, 2025 15:38
The `__find_origin_moves` function doesn't take into account loops in
the chains of origin moves.  Fix this by adding a "visited" record set
which will make sure that any move that has already be expanded won't be
processed again.

This will allow updating the modules (`odoo-bin -u all`) even when there
is existing data which has cycles in their origin graph.  The error for
that case looked like this:

    INFO odoo odoo.modules.loading: Loading module sale_order_line_chained_move (185/225)
    ...
      File ".../thirdparty/odoo/addons/sale_order_line_chained_move/hooks.py", line 10, in __find_origin_moves
        all_moves |= __find_origin_moves(move.move_orig_ids)
      [Previous line repeated 978 more times]
      File ".../thirdparty/odoo/addons/sale_order_line_chained_move/hooks.py", line 9, in __find_origin_moves
        if move.move_orig_ids:
      ...
    RecursionError: maximum recursion depth exceeded
@marielejeune marielejeune force-pushed the 18.0-mig-sale_order_line_chained_move branch from 69cd275 to 673a994 Compare February 24, 2025 10:45
@marielejeune
Copy link
Contributor Author

Ping @rousseldenis

@rousseldenis
Copy link
Contributor

/ocabot migration sale_order_line_chained_move

Copy link
Member

@FrancoMaxime FrancoMaxime left a comment

Choose a reason for hiding this comment

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

LGTM: code review

Great job!

@marielejeune
Copy link
Contributor Author

@rousseldenis This could be merged so that we remove the test-requirements in OCA/purchase-workflow#2575 (comment)

@rousseldenis
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-3590-by-rousseldenis-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jun 23, 2025
Signed-off-by rousseldenis
@OCA-git-bot
Copy link
Contributor

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

@rousseldenis
Copy link
Contributor

@marielejeune I'm on test problem.

@rousseldenis
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

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

OCA-git-bot added a commit that referenced this pull request Oct 9, 2025
Signed-off-by rousseldenis
@OCA-git-bot
Copy link
Contributor

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

@rousseldenis
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-3590-by-rousseldenis-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit c879739 into OCA:18.0 Oct 13, 2025
4 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

9 participants