[FIX] mrp: persist expected duration when generating BoM

Before this commit
==================
When creating a BOM through a MO (form view), the WO expected duration is reset
to the default value on the source MO as well as the corresponding Operations in
the BOM.

Steps to Produce
=================
- Create a MO with 1+ WOs and set an expected duration for the WOs.
- Generate a BOM through the MO and observe the changed duration after saving
the BOM

After this commit
=================
After this commit the operation/WO duration doesn't reset to default values.

task - 3414446

closes odoo/odoo#129390

X-original-commit: 05d0dc26e24f24107a5e443dc9ccafd0ff7a1af9
Signed-off-by: Tiffany Chang <tic@odoo.com>
This commit is contained in:
Hardik Domadiya
2023-07-24 23:03:56 +02:00
parent 42bf1dc576
commit a669cad446
+1
View File
@@ -9,6 +9,7 @@
<tree string="Routing Work Centers" multi_edit="1">
<field name="active" invisible="1"/>
<field name="company_id" invisible="1"/>
<field name="time_cycle_manual" invisible="1"/>
<field name="name"/>
<field name="bom_id"/>
<field name="workcenter_id"/>