-
-
Notifications
You must be signed in to change notification settings - Fork 723
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
[16.0][MIG] stock_package_autoload: Migration to 16.0 #2218
base: 16.0
Are you sure you want to change the base?
Conversation
This module allows to automatically add the content of a package to the transfer lines
d1514e1
to
57d6aeb
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.
Code review, LGTM, one possible suggestion
[ | ||
( | ||
"id", | ||
"in", | ||
self.env["stock.quant.package"] | ||
.search([("quant_ids.product_id", "=", self.product_id.id)]) | ||
.ids, | ||
) | ||
] | ||
if self.product_id |
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.
question:Would it be possible to avoid the search (line 28) and return
[("quant_ids.product.id", "=", self.product_id.id ])
?
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.
Updated without search
57d6aeb
to
edb1d64
Compare
"category": "Warehouse Management", | ||
"depends": [ | ||
"stock", | ||
"web_domain_field", |
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.
issue: this module is deprecated, the same can be achieved in base Odoo by using a Binary field. See: https://github.com/OCA/web/blob/16.0/web_domain_field/README.rst
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.
Sorry on missing to notice the deprecation. Thank you for noticing it.
edb1d64
to
15738ff
Compare
Migrating stock_package_autoload to 16.0
This module is migrated in 16.0 as this module is introduced as part of this PR in 14.0 : #2027