Skip to content
Snippets Groups Projects
Commit 634bdbfa authored by William Henrotin's avatar William Henrotin
Browse files

[FIX] mrp: blocks default product on bom line


The action called from the product's bom stat button (mrp.product_open_bom)
fill the key 'default_product_id'. This allows, creating a bom from the list view,
to prefilled the product.

This context key will also fill each new bom line as the technical field is
called product_id too.

This commit overrides default_product_id to False for the bom line One2many
in the bom form view in order to only prefill the finished product and not
the components.

Task : 2045485

closes odoo/odoo#35444

Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
parent ca2aacfd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment