Skip to content

Conversation

@AaronHForgeFlow
Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow commented Jul 21, 2025

Test are failing in 18.0 branch ⚠️

This commit odoo/odoo@6aee84e seems to make repair_type locations not to be used.

move.repair_line_type
)
move.location_id = location_src
move.location_dest_id = location_dest

Choose a reason for hiding this comment

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

shouldn't the location dest id be changed in the compute method compute_location_dest_id from standard?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔 yes, let me check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right! I did the change :)

@AaronHForgeFlow AaronHForgeFlow changed the title [18.0][FIX] repair_type: tests [18.0][FIX] repair_type: location_id is now computed Jul 24, 2025
move.location_id = location_src
move.location_dest_id = location_dest
else:
res = super()._compute_location_id()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is also not correct, you are doing super for the whole recordset on every iteration. The odoo approach can inspire you odoo/odoo@6aee84e#diff-ff31dd528a40b4d1e4dffeabce24c78b96deb6576802956f532eaaeb9826cbd8R257

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point! It is fixed now. Thanks for the example!

odoo/odoo@6aee84e
It is needed to override the compute method or type locations are not used
@AaronHForgeFlow AaronHForgeFlow force-pushed the 18.0-fix-repair_type-tests branch from 9211428 to 7070fbb Compare July 24, 2025 08:54
Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@LoisRForgeFlow
Copy link
Contributor

@JordiMForgeFlow could you update your review?

@LoisRForgeFlow
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-111-by-LoisRForgeFlow-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e85367c into OCA:18.0 Jul 24, 2025
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 42b916f. Thanks a lot for contributing to OCA. ❤️

@LoisRForgeFlow LoisRForgeFlow deleted the 18.0-fix-repair_type-tests branch July 24, 2025 09:13
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