-
-
Notifications
You must be signed in to change notification settings - Fork 61
[18.0][FIX] repair_type: location_id is now computed #111
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
Conversation
a0c31ff to
c64812d
Compare
| move.repair_line_type | ||
| ) | ||
| move.location_id = location_src | ||
| move.location_dest_id = location_dest |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 yes, let me check
There was a problem hiding this comment.
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 :)
repair_type/models/stock_move.py
Outdated
| move.location_id = location_src | ||
| move.location_dest_id = location_dest | ||
| else: | ||
| res = super()._compute_location_id() |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
c64812d to
9211428
Compare
odoo/odoo@6aee84e It is needed to override the compute method or type locations are not used
9211428 to
7070fbb
Compare
LoisRForgeFlow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
|
@JordiMForgeFlow could you update your review? |
|
/ocabot merge patch |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at 42b916f. Thanks a lot for contributing to OCA. ❤️ |
Test are failing in 18.0 branch⚠️
This commit odoo/odoo@6aee84e seems to make repair_type locations not to be used.