OCA / sale-workflow

Odoo Sales, Workflow and Organization
GNU Affero General Public License v3.0
296 stars 1.03k forks source link

[16.0] sale_mrp_bom: currently U can choose a bom in sale order line for non properly configured as manufactured products which is misleading #3403

Open rrebollo opened 1 week ago

rrebollo commented 1 week ago

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:

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

What do you think?

Originally posted by @arielbarreiros96 in https://github.com/OCA/sale-workflow/issues/3380#issuecomment-2446793455