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] Add stock_reserve_packaging - Alpha version #695

Closed
wants to merge 2 commits into from

Conversation

guewen
Copy link
Member

@guewen guewen commented Sep 3, 2019

Reservation by complete packaging first, then apply the removal
strategy.

This is the first working version. When working on the other modules touching
the removal strategies, we may need to make a common base, but until then, we
aren't sure of what the lowest common denominator is (first: get a working
version, two: refactor; we are clearly at step one :).

Also, I had to duplicate many lines from the stock module to get this working.
I'll open a PR on master to have better abstractions on the next release, hopefully.

Related to #621 and #685

@guewen guewen force-pushed the 12.0-wms-stock-reserve-package branch from 1a81dc1 to f809de2 Compare September 3, 2019 12:31
@guewen guewen changed the title [WMS][12.0] Add stock_reserve_package - Alpha version [WMS][12.0] Add stock_reserve_packaging - Alpha version Sep 3, 2019
@guewen guewen force-pushed the 12.0-wms-stock-reserve-package branch 2 times, most recently from a75eb3c to b9e2b72 Compare September 3, 2019 13:28
@guewen
Copy link
Member Author

guewen commented Sep 3, 2019

Extraction of the methods for master: odoo/odoo#36385

@guewen
Copy link
Member Author

guewen commented Sep 3, 2019

The build error should be fixed by OCA/product-attribute#500

Reservation by complete packaging first, then apply the removal
strategy.
@guewen guewen force-pushed the 12.0-wms-stock-reserve-package branch from b9e2b72 to 627af97 Compare September 3, 2019 14:19
guewen added a commit to guewen/odoo that referenced this pull request Sep 3, 2019
In order to allow more advanced behaviours from extension addons.
For instance, an addon to reserve full packaging (e.g. a pallet) before
considering the removal strategy
(OCA/stock-logistics-warehouse#695).

As this special strategy is based on the ordered quantity, it cannot be added to
the _gather() or _get_removal_strategy() methods which do not know the
quantity. The reservation happens in an override of _update_reserved_quantity(),
and many lines of code have to be duplicated. Extracting these 2 methods
will allow to reduce duplication.
Copy link
Member

@jgrandguillaume jgrandguillaume left a comment

Choose a reason for hiding this comment

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

LGTM, functional tests ok on my side

@guewen
Copy link
Member Author

guewen commented Sep 13, 2019

Now handled as a removal strategy in reservation rules (#683). Closing, any interested people: feel free to reopen.

@guewen guewen closed this Sep 13, 2019
@jgrandguillaume jgrandguillaume mentioned this pull request Sep 13, 2019
32 tasks
manuelcalerosolis pushed a commit to xtendoo-corporation/stock-logistics-warehouse that referenced this pull request Oct 31, 2020
Signed-off-by guewen
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.

2 participants