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

zone_picking/unload_set_destination: fix move.state = partially_available handling #96

Merged

Conversation

simahawk
Copy link
Member

ref: 1699

@simahawk simahawk requested a review from sebalix October 19, 2020 13:37
@simahawk simahawk force-pushed the zone-picking-fix-partially-avail branch from d6aa35b to f62c07d Compare October 20, 2020 12:13
@codecov-io
Copy link

codecov-io commented Oct 20, 2020

Codecov Report

Merging #96 into 13.0-shopfloor will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           13.0-shopfloor      #96   +/-   ##
===============================================
  Coverage           90.56%   90.57%           
===============================================
  Files                  92       92           
  Lines                5153     5158    +5     
===============================================
+ Hits                 4667     4672    +5     
  Misses                486      486           
Impacted Files Coverage Δ
shopfloor/models/stock_move.py 97.36% <100.00%> (+0.22%) ⬆️
shopfloor/services/zone_picking.py 95.39% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9919664...f62c07d. Read the comment docs.

qty_to_split = sum(other_move_lines.mapped("product_uom_qty"))
if other_move_lines or self.state == "partially_available":
if intersection:
# TODO @sebalix: please check if we can abandon the flag.
Copy link
Member

Choose a reason for hiding this comment

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

Ok I see, indeed better to do the "set operation" outside of this method. Can't see a side-effect by doing so.

@simahawk
Copy link
Member Author

@sebalix this one could be merged as long as we have TODO items and we can get back later to them

@simahawk simahawk merged commit 895acda into camptocamp:13.0-shopfloor Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants