Skip to content
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

[WMS][12.0] rework stock_location_zone #711

Merged
merged 10 commits into from
Nov 12, 2021

Conversation

grindtildeath
Copy link
Contributor

Followup to #653

@grindtildeath grindtildeath changed the title 12.0 rework stock location zone [WMS][12.0] rework stock_location_zone Sep 11, 2019
@grindtildeath grindtildeath force-pushed the 12.0_rework_stock_location_zone branch from 550a0e2 to 2731ca8 Compare September 11, 2019 13:09
@rousseldenis
Copy link
Contributor

How fast reaction 😄 👍

It prevents other addons to work properly such as the vertical lift.
We remove the constraint for now, maybe to be re-introduced later in a
more permissive way.
* Compute the 'zone' fields in the same method
* Remove the dependency on 'zone_location_id', which seems to take
  a lot of time if not an infinite loop
@jgrandguillaume jgrandguillaume mentioned this pull request Sep 13, 2019
32 tasks
So we can use it in group-by and filters. Note that we can have several
levels of areas... only the top-level will be used.

This commit fixes the computed field dependencies:
_compute_location_kind should have a dependency on both it's parent's
location_kind and on its child_ids to know if we are in a bin. This
can't work without triggering an infinite loop. The trick used here is
to split the computation of 'zone_location_id + area_location_id' in one
computed method, and move the computation of the kind in a different
method with triggers an the current record's zone_location +
area_location_id, but not on the parent.

Plus the zone_location_id and area_location_id do not depend anymore on
the parent's kind, which is the reason for the infinite loop.
@guewen
Copy link
Member

guewen commented Sep 20, 2019

Reworked the function fields, added store=True and added an area_location_id similar to zone_location_id.

Co-Authored-By: Jacques-Etienne Baudoux <[email protected]>
@jgrandguillaume
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 12.0-ocabot-merge-pr-711-by-jgrandguillaume-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Sep 29, 2020
Signed-off-by jgrandguillaume
@OCA-git-bot
Copy link
Contributor

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

manuelcalerosolis pushed a commit to xtendoo-corporation/stock-logistics-warehouse that referenced this pull request Oct 31, 2020
Signed-off-by pedrobaeza
@rousseldenis
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

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

OCA-git-bot added a commit that referenced this pull request May 29, 2021
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 12.0-ocabot-merge-pr-711-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

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

@OCA-git-bot OCA-git-bot merged commit ea53ca0 into OCA:12.0 Nov 12, 2021
@OCA-git-bot
Copy link
Contributor

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

8 participants