[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#78544 X-original-commit: d73752c5fe983ce6a9147721e732396394a77cc4 Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user