-
-
Notifications
You must be signed in to change notification settings - Fork 505
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] mrp_bom_location: Migration to 18.0 #1470
base: 18.0
Are you sure you want to change the base?
Conversation
to avoid built-in override
…n the structure report
Currently translated at 100.0% (4 of 4 strings) Translation: manufacture-11.0/manufacture-11.0-mrp_bom_location Translate-URL: https://translation.odoo-community.org/projects/manufacture-11-0/manufacture-11-0-mrp_bom_location/de/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: manufacture-12.0/manufacture-12.0-mrp_bom_location Translate-URL: https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-mrp_bom_location/
* eficent rebranded to forgeflow * license changed to lgpl
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: manufacture-13.0/manufacture-13.0-mrp_bom_location Translate-URL: https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-mrp_bom_location/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: manufacture-16.0/manufacture-16.0-mrp_bom_location Translate-URL: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_bom_location/
Currently translated at 100.0% (5 of 5 strings) Translation: manufacture-16.0/manufacture-16.0-mrp_bom_location Translate-URL: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_bom_location/it/
Currently translated at 100.0% (5 of 5 strings) Translation: manufacture-16.0/manufacture-16.0-mrp_bom_location Translate-URL: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_bom_location/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: manufacture-16.0/manufacture-16.0-mrp_bom_location Translate-URL: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_bom_location/
Currently translated at 100.0% (5 of 5 strings) Translation: manufacture-16.0/manufacture-16.0-mrp_bom_location Translate-URL: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_bom_location/hr/
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.
Can you please take the opportunity to add some unit tests? 🙏🏻
@api.onchange("picking_type_id") | ||
def _onchange_picking_type_id(self): | ||
if self.picking_type_id and self.picking_type_id.default_location_src_id: | ||
self.location_id = self.picking_type_id.default_location_src_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.
We should make this a computed field with store=True, readonly=False
, IMO
product_info=product_info, | ||
ignore_stock=ignore_stock, | ||
) | ||
line_ids = self.env["mrp.bom.line"].search([("bom_id", "=", bom.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.
line_ids = self.env["mrp.bom.line"].search([("bom_id", "=", bom.id)]) | |
line_ids = bom.bom_line_ids |
I don't undertand this search. Why don't we just read the field?
No description provided.