hunk.code_window:         self.assertEqual(op_2.date_start, datetime(2022, 10, 23, 12))
           with Form(mo_01) as mo_01_form:
               with mo_01_form.workorder_ids.edit(0) as workorder:
                   workorder.date_start = datetime(2022, 10, 18, 12)
               mo_01 = mo_01_form.save()
           self.assertEqual(op_1.date_start, datetime(2022, 10, 18, 12))
           # no auto replan
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:             with mo_01_form.workorder_ids.edit(1) as workorder:
  
hunk.file_path: addons/mrp/tests/test_order.py
hunk.type: replace
file: <?xml version="1.0" encoding="utf-8"?>
  <odoo>
          <!-- We want to activate SO template by default for easier demoing. -->
          <record id="base.group_user" model="res.groups">
              <field name="implied_ids" eval="[(4, ref('sale_management.group_sale_order_template'))]"/>
          </record>
  
          <record id="sale_order_template_1" model="sale.order.template">
              <field name="name">Large Meeting Table</field>
              <field name="number_of_days">45</field>
          </record>
  
          <record id="sale_order_template_line_1" model="sale.order.template.line">
              <field name="sale_order_template_id" ref="sale_order_template_1"/>
              <field name="name">Large Meeting Table</field>
              <field name="product_id" ref="product.consu_delivery_02"/>
              <field name="product_uom_qty">1</field>
              <field name="product_uom_id" ref="uom.product_uom_unit"/>
          </record>
  
          <record id="sale_order_template_option_1" model="sale.order.template.option">
              <field name="sale_order_template_id" ref="sale_order_template_1"/>
              <field name="name">Office Chair</field>
              <field name="product_id" ref="product.product_delivery_01"/>
              <field name="quantity">4</field>
              <field name="uom_id" ref="uom.product_uom_unit"/>
          </record>
  </odoo>
  