-
-
Notifications
You must be signed in to change notification settings - Fork 738
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
[18.0][MIG] stock_picking_product_assortment #2262
base: 18.0
Are you sure you want to change the base?
Conversation
… assortment This module allow to use the product assortment related to partners on outgoing stock pickings.
…ension module to extend product domain. Unnecessary code removed
31a4173
to
7f3a12e
Compare
7f3a12e
to
a043b71
Compare
Let's go now OCA/product-attribute#1904 is merged |
@PieterPaulussen |
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 💯
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.
The performance of this module should be re-evaluated because of the inefficient domain parameter in the views.
operation="domain_add" | ||
condition="parent.has_assortment" | ||
> | ||
[('id', 'in', parent.assortment_product_ids)] |
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.
@bosd This should not be solved here, but have you tested this with resulting large domains? This will work fine and well for a small set, but for large results... an ('id', 'in', parent.assortment_product_ids)
is really inefficient.
Is there no way to invert the domain like ('assortment_id', 'in', parent.assortment_ids)
?
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.
@PieterPaulussen I did not test this module with large domains or data sets.
I've tried the code suggestion, but it did'nt work yet.
This module allows to use the product assortments related to a partner | ||
on stock pickings. Whith this implementation, on stock pickings, we only allow to | ||
select the products defined on the assortment and we don't allow to select | ||
products which are not defined in the whitelist on the assortment. |
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.
What about the blacklisted products?
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 catch. I've changed it to make it more clear and general.
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.
@jbaudoux Is this PR ok for you now?
Co-authored-by: Jacques-Etienne Baudoux <[email protected]>
c248653
to
8b32452
Compare
folluw up of: OCA/stock-logistics-workflow#1858