Skip to content
Snippets Groups Projects
Commit d73752c5 authored by Florian Damhaut's avatar Florian Damhaut
Browse files

[FIX] mrp : Remove operations from production template when the module is disabled


Current Behaviour :
1. Enable Work Orders
2. Add an operation to a BOM
3. Disable Work Orders
4. Create a manufacturing order for this product and finish the manufacturing.
5. Print the production order

What is the current behavior that you observe?
The production order has the operations in it even though the work order option has been disabled. This is because disabling the work order option just hides the operations and does not remove it from the BOM.

What would be your expected behavior in this case?
The printed production should not show the operation.

opw-2660545

closes odoo/odoo#78244

Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
parent d9ce0507
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@
</div>
</div>
<div t-if="o.workorder_ids">
<div t-if="o.workorder_ids" groups="mrp.group_mrp_routings">
<h3>
<span t-if="o.state == 'done'">Operations Done</span>
<span t-else="">Operations Planned</span>
......
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