<commit_before><?xml version="1.0" encoding="utf-8" ?>
<openerp>
  <data>
    <record id="view_program_result_tree" model="ir.ui.view">
      <field name="name">Result Tree</field>
      <field name="model">program.result</field>
      <field name="field_parent">child_ids</field>
      <field name="arch" type="xml">
        <tree string="Results" version="7.0">
          <field name="result_level_id" />
          <field name="code" />
          <field name="name" />
          <field name="date_from" />
          <field name="date_to" />
        </tree>
      </field>
    </record>

    <record id="view_program_result_form" model="ir.ui.view">
      <field name="name">Result Form</field>
      <field name="model">program.result</field>
      <field name="arch" type="xml">
        <form string="Result" version="7.0">
          <sheet>
            <div class="oe_title">
              <label for="name" class="oe_edit_only" />
              <h1>
                <field name="name" />
              </h1>
            </div>

            <group colspan="4" col="2">
              <field name="long_name"/>
            </group>

            <group colspan="4" col="4">
              <group>
                <field name="code" />
                <field name="result_level_id" />
                <field name="parent_id" domain="[('id', '!=', id)]"/>
              </group>

              <group>
                <field name="date_from" />
                <field name="date_to" />
              </group>
            </group>

            <group colspan="4" col="2">
              <field name="is_transversal" />
            </group>

            <group colspan="4" col="2">
              <field name="description" />
            </group>

            <notebook>
              <page name="target" string="Targets">
                <group colspan="4" col="2">

                  <field name="target_audience" />
                  <field name="target_audience_type_ids" domain="[('active', '=', True)]" />
                </group>
              </page>

              <page name="children" string="Results">
                <group col="1">
                  <label for="child_ids" />
                  <field name="child_ids" nolabel="1">
                    <tree>
                      <field name="result_level_id" />
                      <field name="name" />
                    </tree>
                  </field>
                </group>

                <group col="1" attrs="{'invisible': [('is_transversal', '=', False)]}">
                  <label for="transverse_ids" />
                  <field name="transverse_ids" nolabel="1" domain="[('id', '!=', id), ('result_level_id.depth', '=', 1)]"><commit_msg>Default parent id when creating a child<commit_after><?xml version="1.0" encoding="utf-8" ?>
<openerp>
  <data>
    <record id="view_program_result_tree" model="ir.ui.view">
      <field name="name">Result Tree</field>
      <field name="model">program.result</field>
      <field name="field_parent">child_ids</field>
      <field name="arch" type="xml">
        <tree string="Results" version="7.0">
          <field name="result_level_id" />
          <field name="code" />
          <field name="name" />
          <field name="date_from" />
          <field name="date_to" />
        </tree>
      </field>
    </record>

    <record id="view_program_result_form" model="ir.ui.view">
      <field name="name">Result Form</field>
      <field name="model">program.result</field>
      <field name="arch" type="xml">
        <form string="Result" version="7.0">
          <sheet>
            <div class="oe_title">
              <label for="name" class="oe_edit_only" />
              <h1>
                <field name="name" />
              </h1>
            </div>

            <group colspan="4" col="2">
              <field name="long_name"/>
            </group>

            <group colspan="4" col="4">
              <group>
                <field name="code" />
                <field name="result_level_id" />
                <field name="parent_id" domain="[('id', '!=', id)]"/>
              </group>

              <group>
                <field name="date_from" />
                <field name="date_to" />
              </group>
            </group>

            <group colspan="4" col="2">
              <field name="is_transversal" />
            </group>

            <group colspan="4" col="2">
              <field name="description" />
            </group>

            <notebook>
              <page name="target" string="Targets">
                <group colspan="4" col="2">

                  <field name="target_audience" />
                  <field name="target_audience_type_ids" domain="[('active', '=', True)]" />
                </group>
              </page>

              <page name="children" string="Results">
                <group col="1">
                  <label for="child_ids" />
                  <field name="child_ids" nolabel="1" context="{'default_parent_id': id}">
                    <tree>
                      <field name="result_level_id" />
                      <field name="name" />
                    </tree>
                  </field>
                </group>

                <group col="1" attrs="{'invisible': [('is_transversal', '=', False)]}">
                  <label for="transverse_ids" />
                  <field name="transverse_ids" nolabel="1" domain="[('id', '!=', id), ('result_level_id.depth', '=', 1)]">
{'fraction_non_alphanumeric': 0.17066957787481804, 'fraction_numerical': 0.008733624454148471, 'mean_word_length': 1.5413777161349977, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 2, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4800239', 'n_tokens_mistral': 1624, 'n_tokens_neox': 1547, 'n_words': 295}