-
-
Notifications
You must be signed in to change notification settings - Fork 33
[16.0][MIG]stock_orderpoint_route: migration to 16.0
#23
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
[16.0][MIG]stock_orderpoint_route: migration to 16.0
#23
Conversation
To avoid executing the setup for each test
* performance (less queries executed) * disable tracking in tests (faster) * use with_user instead of sudo * the double for loop in _compute_route_ids actually generates one more query as the simple one in this commit (thanks to the cache) * extract a method * the parent locations can be found using 'parent_of' which will use the parent_path under the hood (example: 1/7/8 will return locations 1, 7, 8) [UPD] Update stock_orderpoint_route.pot
[UPD] Update stock_orderpoint_route.pot
This is to avoid issue below for any module that inherits tree view of
the model `stock.warehouse.orderpoint`. Example: `stock_orderpoint_manual_procurement`
Field route_ids used in field route_id default domain
([('id', 'in', route_ids)]) must be present in view but is missing.
Complete the fix done in 06dfeedc66
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-warehouse-14.0/stock-logistics-warehouse-14.0-stock_orderpoint_route Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_orderpoint_route/
59c57c6 to
6688005
Compare
rousseldenis
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.
Code review
|
/ocabot migration stock_orderpoint_route |
|
There's no issue in this repo with the title 'Migration to version 16.0' and the milestone 16.0, so not possible to add the 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
Thanks you @PicchiSeba
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
@yvaucher your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-23-by-yvaucher-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. |
|
@PicchiSeba seems the merge failed due to the following error: I would advice to use freezegun to get a fixed date in the tests. It most likely fails because today is the 30 september and tomorrow is not the 31 of september ;) Or you can more simply use |
The problem lies in the stock-logistics-orderpoint/stock_location_orderpoint/tests/test_location_orderpoint.py Line 99 in e387e1e
This statement will always fail if we test on the last day of the month |
|
@yvaucher we can merge this now. Later in the day I will fix the base module test |
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at a471175. Thanks a lot for contributing to OCA. ❤️ |
This module was originally from https://github.com/OCA/stock-logistics-warehouse/tree/14.0/ but for
16.0it has been moved to this repo