hunk.code_window:                         'name': line['name'],
                           'procurement_id': move.procurement_id.id,
                           'split_from': move.id, #Needed in order to keep purchase connection, but will be removed by unlink
                       }
                       mid = move_obj.copy(cr, uid, move.id, default=valdef)
                       to_explode_again_ids.append(mid)
                   else:
                       if prod_obj.need_procurement(cr, uid, [product.id], context=context):
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:                     mid = move_obj.copy(cr, uid, move.id, default=valdef, context=context)
  
hunk.file_path: addons/mrp/stock.py
hunk.type: replace
file: <?xml version="1.0" encoding="utf-8"?>
  <openerp>
      <data>
  
          <record id="cdr_report_view" model="ir.ui.view">
              <field name="name">Compte de resultat Report</field>
              <field name="model">account.cdr.report</field>
              <field name="arch" type="xml">
                  <form string='Compte de resultat'>
                      <group>
                          <field name="fiscalyear_id"/>
                      </group>
                      <footer>
                          <button name="print_cdr_report" string="Print" type="object" class="oe_highlight"  />
                          or
                          <button string="Cancel" class="oe_link" special="cancel" />
                      </footer>
                   </form>
              </field>
          </record>
  
          <record id="action_account_cdr_report" model="ir.actions.act_window">
              <field name="name">Compte de resultat Report</field>
              <field name="type">ir.actions.act_window</field>
              <field name="res_model">account.cdr.report</field>
              <field name="view_type">form</field>
              <field name="view_mode">form</field>
              <field name="view_id" ref="cdr_report_view"/>
              <field name="target">new</field>
          </record>
  
          <record model="ir.values" id="action_account_cdr_report_values">
              <field name="model_id" ref="model_account_cdr_report" />
              <field name="name">Compte de resultat Report</field>
              <field name="key2">client_print_multi</field>
              <field name="value" eval="'ir.actions.act_window,' +str(ref('action_account_cdr_report'))" />
              <field name="key">action</field>
              <field name="model">account.move.line</field>
          </record>
  
      </data>
  </openerp>
  