-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
[13.0][MIG] stock_quant_package_product_packaging #607
[13.0][MIG] stock_quant_package_product_packaging #607
Conversation
@grindtildeath isn't it time to add tests ? |
@rousseldenis I'll try to add a few here if I still have time after migrating the "top modules" from wms repo 😉 |
cfcf10b
to
c1c1ec6
Compare
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.
@grindtildeath still have to work on this?
pack_products = pack.quant_ids.mapped("product_id") | ||
if len(pack_products) == 1: | ||
pack.single_product_id = pack_products.id | ||
# TODO handle uom |
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.
is this TODO a blocker?
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.
Looking at it now, I think the comment can be dropped because:
- UOM on
stock.quant
is related to the product: https://github.com/odoo/odoo/blob/13.0/addons/stock/models/stock_quant.py#L57 - UOM on
product.packaging
is also related to the product: https://github.com/odoo/odoo/blob/13.0/addons/product/models/product.py#L700
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.
makes sense. Remove it then :)
37b1b54
to
06d45a8
Compare
8863cbf
to
b9481ed
Compare
b9481ed
to
3f7e2ef
Compare
pack_products = pack.quant_ids.mapped("product_id") | ||
if len(pack_products) == 1: | ||
pack.single_product_id = pack_products.id | ||
# TODO handle uom |
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.
makes sense. Remove it then :)
@grindtildeath check commits, this is likely an error e2c68b7 |
This PR has the |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 5d95154. Thanks a lot for contributing to OCA. ❤️ |
Forward port of #585