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

[15.0] [MIG]: sale_mrp_bom #3380

Open
wants to merge 15 commits into
base: 15.0
Choose a base branch
from

Conversation

rrebollo
Copy link

Reusing work from #2234 . Currently refactoring tests.

@pedrobaeza
Copy link
Member

/ocabot migration sale_mrp_bom

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Oct 29, 2024
@rrebollo rrebollo marked this pull request as ready for review October 30, 2024 09:19
@rrebollo
Copy link
Author

@pedrobaeza sorry to bother U, the failing test is pointing to pre-commit stuff which aren't in the addon I'm upgrading so what can I do about it?

@pedrobaeza
Copy link
Member

That's because you have updated the copier template in this PR, and thus, new linter requirements. You have to either not update the copier template, or update it, and fix the linter new complaints.

@arielbarreiros96
Copy link

I've tested the module, and overall it performs well, as it does in other versions. However, I suggest enhancing the bom_id field by extending the domain to allow BOM selection only when the product is configured with the right routes. Specifically, the product should have either:

  • Manufacture and MTO routes enabled, or
  • Manufacture with both MTO + MTS route (if applicable).

This improvement would help ensure that defining a BOM on the Sales Order leads to a Manufacturing Order upon confirmation (otherwise it only serves to have the reference), other, aligning with expected behavior. I noticed this feature isn’t present in v16 either, so this adjustment could done across versions.

What do you think?

@rrebollo
Copy link
Author

That's because you have updated the copier template in this PR, and thus, new linter requirements. You have to either not update the copier template, or update it, and fix the linter new complaints.

I had to. The repo template has fixed node to v14 and it was raising eslint invalid syntax errors. Same for autoflake and flake8 hooks for pre-commit. The first one was raising "no module name distutils", the second one "AttributeError: 'EntryPoints' object has no attribute 'get'".

I'll fix the pre-commit complaints.

@rrebollo rrebollo force-pushed the 15.0-mig-sale_mrp_bom branch 2 times, most recently from 2fa79f1 to 6369eb3 Compare November 6, 2024 16:00
@bosd
Copy link
Contributor

bosd commented Nov 6, 2024

LGTM, Can you squash the translation commits?

carlosdauden and others added 14 commits November 6, 2024 13:07
This commit fixes a bug where the module would not accept a BoM on a
Sale Order Line if the product in question had multiple variants and
the BoM did not specify a variant.

Now, regardless of whether the product has multiple variants or not,
if the variant is specified on the BoM, it must match the
product on the Sale Order Line (like before), but if it's
not specified, matching on the product template is enough.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_mrp_bom
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_mrp_bom/
Currently translated at 100.0% (8 of 8 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_mrp_bom
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_mrp_bom/es/
[IMP] update repo template to 1.27 and update flake8 for pre-commit

[IMP] update autoflake for pre-commit
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.