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

[18.0][MIG] mrp_bom_location: Migration to 18.0 #1470

Open
wants to merge 48 commits into
base: 18.0
Choose a base branch
from

Conversation

Kimkhoi3010
Copy link

No description provided.

LoisRForgeFlow and others added 30 commits January 22, 2025 16:39
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/
mymage and others added 18 commits January 22, 2025 16:39
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/
Copy link
Contributor

@ivantodorovich ivantodorovich left a 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? 🙏🏻

Comment on lines +12 to +15
@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
Copy link
Contributor

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)])
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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?

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.