<commit_before><?xml version="1.0"?>
<openerp>
<data>

    <menuitem id="menu_finance_config_Assets" name="Assets" parent="account.menu_finance_configuration"/>
    <record model="ir.ui.view" id="view_account_asset_category_form">
        <field name="name">account.asset.category.form</field>
        <field name="model">account.asset.category</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Asset category">
           <group col="6" colspan="4">
                <field name="name" select="1" colspan="4"/>
                <field name="company_id" groups="base.group_multi_company"/>
                <newline/>
                <field name="journal_id"/>
                <field name="account_asset_id"/>
                <field name="account_depreciation_id"/>
           </group>
        <group col="6" colspan="4" groups="analytic.group_analytic_accounting">
        <separator string="Accounts information" colspan="4" />
        <field name="account_analytic_id" />
        <field name="journal_analytic_id" />
        </group>
                <separator string="Note"/>
                <field name="note" colspan="4" nolabel="1"/>
            </form>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_category_tree">
        <field name="name">account.asset.category.tree</field>
        <field name="model">account.asset.category</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Asset category">
                <field name="name"/>
                <field name="journal_id"/>
                <field name="account_asset_id"/>
                <field name="account_depreciation_id"/>
                <field name="company_id" groups="base.group_multi_company"/>
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_asset_form">
        <field name="name">account.asset.asset.form</field>
        <field name="model">account.asset.asset</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
           <form string="Asset">
              <group col="6" colspan="4">
                 <field name="name" select="1"/>
                 <field name="category_id" select="1"/>
                 <field name="code" select="1"/>
                 <field name="purchase_value" select="1"/>
                 <field name="currency_id" select="1"/>
                 <field name="company_id" select="1"/>
                 <field name="value_residual"/> 
              </group>
              <notebook colspan="4">
                 <page string="Depreciation">
                    <separator string="Other information" colspan="4"/>
                    <field name="partner_id"/>
                    <field name="purchase_date"/>
                    <separator string="Depreciation duration" colspan="4"/>
                    <button 
                         name="%(wizard_asset_modify)d" 
                         states="open" 
                         string="Change duration" 
                         type="action" 
                         colspan="2"/>
                    <newline/>
                    <field name="method"/>
                    <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')]}"/>
                    <newline/>
                    <field name="method_time"/>
                    <field name="method_period" attrs="{'invisible':[('method_time','=','end')]}"/>
                    <field name="prorata" colspan="1"/>
                    <field name="method_delay"/>
                    <newline/>
                 </page>
                 <page string="Depreciation board">
                    <field name="depreciation_line_ids" colspan="4" nolabel="1" mode="tree,graph">
                       <tree>
                          <field name="depreciation_date"/>
                          <field name="sequence" invisible="1"/>
                          <field name="amount"/>
                          <field name="depreciated_value"/>
                          <field name="remaining_value"/>
                       </tree>
                       <graph type="bar">
                          <field name="name"/>
                          <field name="amount"/>
                          <field name="depreciated_value"/>
                       </graph>
                    </field>
                    <button type="object" name="compute_depreciation_board" string="Compute" icon="terp-stock_format-scientific" colspan="2"/>
                    <button type="object" name="account_move_line_deprec" string="Create move line" icon="gtk-execute" colspan="2"/>
                 </page>
                 <page string="History">
                    <field name="account_move_line_ids" colspan="4" nolabel="1" readonly="1"/>
                    <field name="history_ids" colspan="4" nolabel="1" readonly="1"/>
                 </page>
                 <page string="Notes">
                    <field name="note" nolabel="1"/>
                 </page>    
              </notebook>
              <field name="state" readonly="1"/>
              <group colspan="2" col="2">
                 <button name="validate" states="draft" string="Confirm asset" type="object"/>
              </group>
           </form>
       </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_history_form">
        <field name="name">account.asset.history.form</field>
        <field name="model">account.asset.history</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Asset history">
                <field name="name" select="1"/>
                <field name="date" select="1"/>
                <field name="user_id" select="1"/>
                <field name="method_delay" select="2"/>
                <field name="method_period"/>
                <field name="method_end"/>
                <separator string="Notes" colspan="4"/>
                <field name="note" colspan="4" nolabel="1"/>
            </form>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_history_tree">
        <field name="name">account.asset.history.tree</field>
        <field name="model">account.asset.history</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Asset history">
                <field name="date" select="1"/>
                <field name="name" select="1"/>
                <field name="user_id" select="1"/>
                <field name="method_delay" select="2"/>
                <field name="method_period"/>
                <field name="method_end"/>
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_board_form">
        <field name="name">account.asset.board.form</field>
        <field name="model">account.asset.board</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Asset board">
                <field name="name" select="1"/>
                <field name="asset_id" select="1"/>
                   <field name="value_gross" select="2"/>
                <field name="value_asset"/>
                <field name="value_asset_cumul"/>
                <field name="value_net"/>
        <field name="test"/>
            </form>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_board_tree">
        <field name="name">account.asset.board.tree</field>
        <field name="model">account.asset.board</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Asset board">
                <field name="name"/>
                <field name="asset_id"/>
                <field name="value_gross"/>
                <field name="value_asset"/>
                <field name="value_asset_cumul"/>
                <field name="value_net"/>
        <field name="test"/>
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_asset_tree">
        <field name="name">account.asset.asset.tree</field>
        <field name="model">account.asset.asset</field>
        <field name="type">tree</field>
        <field name="field_parent">child_ids</field>
        <field name="arch" type="xml">
            <tree string="Assets">
                <field name="name"/>
                <field name="code"/>
                <field name="value_total"/>
                <field name="purchase_date"/>
                <field name="state"/>
            </tree>
        </field>
    </record>
<commit_msg>[IMP] account_asset: Put multicompany group on company field<commit_after><?xml version="1.0"?>
<openerp>
<data>

    <menuitem id="menu_finance_config_Assets" name="Assets" parent="account.menu_finance_configuration"/>
    <record model="ir.ui.view" id="view_account_asset_category_form">
        <field name="name">account.asset.category.form</field>
        <field name="model">account.asset.category</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Asset category">
           <group col="6" colspan="4">
                <field name="name" select="1" colspan="4"/>
                <field name="company_id" groups="base.group_multi_company"/>
                <newline/>
                <field name="journal_id"/>
                <field name="account_asset_id"/>
                <field name="account_depreciation_id"/>
           </group>
        <group col="6" colspan="4" groups="analytic.group_analytic_accounting">
        <separator string="Accounts information" colspan="4" />
        <field name="account_analytic_id" />
        <field name="journal_analytic_id" />
        </group>
                <separator string="Note"/>
                <field name="note" colspan="4" nolabel="1"/>
            </form>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_category_tree">
        <field name="name">account.asset.category.tree</field>
        <field name="model">account.asset.category</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Asset category">
                <field name="name"/>
                <field name="journal_id"/>
                <field name="account_asset_id"/>
                <field name="account_depreciation_id"/>
                <field name="company_id" groups="base.group_multi_company"/>
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_asset_form">
        <field name="name">account.asset.asset.form</field>
        <field name="model">account.asset.asset</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
           <form string="Asset">
              <group col="6" colspan="4">
                 <field name="name" select="1"/>
                 <field name="category_id" select="1"/>
                 <field name="code" select="1"/>
                 <field name="purchase_value" select="1"/>
                 <field name="currency_id" select="1"/>
                 <field name="company_id" select="1" groups="base.group_multi_company"/>
                 <field name="value_residual"/>
              </group>
              <notebook colspan="4">
                 <page string="Depreciation">
                    <separator string="Other information" colspan="4"/>
                    <field name="partner_id"/>
                    <field name="purchase_date"/>
                    <separator string="Depreciation duration" colspan="4"/>
                    <button 
                         name="%(wizard_asset_modify)d" 
                         states="open" 
                         string="Change duration" 
                         type="action" 
                         colspan="2"/>
                    <newline/>
                    <field name="method"/>
                    <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')]}"/>
                    <newline/>
                    <field name="method_time"/>
                    <field name="method_period" attrs="{'invisible':[('method_time','=','end')]}"/>
                    <field name="prorata" colspan="1"/>
                    <field name="method_delay"/>
                    <newline/>
                 </page>
                 <page string="Depreciation board">
                    <field name="depreciation_line_ids" colspan="4" nolabel="1" mode="tree,graph">
                       <tree>
                          <field name="depreciation_date"/>
                          <field name="sequence" invisible="1"/>
                          <field name="amount"/>
                          <field name="depreciated_value"/>
                          <field name="remaining_value"/>
                       </tree>
                       <graph type="bar">
                          <field name="name"/>
                          <field name="amount"/>
                          <field name="depreciated_value"/>
                       </graph>
                    </field>
                    <button type="object" name="compute_depreciation_board" string="Compute" icon="terp-stock_format-scientific" colspan="2"/>
                    <button type="object" name="account_move_line_deprec" string="Create move line" icon="gtk-execute" colspan="2"/>
                 </page>
                 <page string="History">
                    <field name="account_move_line_ids" colspan="4" nolabel="1" readonly="1"/>
                    <field name="history_ids" colspan="4" nolabel="1" readonly="1"/>
                 </page>
                 <page string="Notes">
                    <field name="note" nolabel="1"/>
                 </page>    
              </notebook>
              <field name="state" readonly="1"/>
              <group colspan="2" col="2">
                 <button name="validate" states="draft" string="Confirm asset" type="object"/>
              </group>
           </form>
       </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_history_form">
        <field name="name">account.asset.history.form</field>
        <field name="model">account.asset.history</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Asset history">
                <field name="name" select="1"/>
                <field name="date" select="1"/>
                <field name="user_id" select="1"/>
                <field name="method_delay" select="2"/>
                <field name="method_period"/>
                <field name="method_end"/>
                <separator string="Notes" colspan="4"/>
                <field name="note" colspan="4" nolabel="1"/>
            </form>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_history_tree">
        <field name="name">account.asset.history.tree</field>
        <field name="model">account.asset.history</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Asset history">
                <field name="date" select="1"/>
                <field name="name" select="1"/>
                <field name="user_id" select="1"/>
                <field name="method_delay" select="2"/>
                <field name="method_period"/>
                <field name="method_end"/>
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_board_form">
        <field name="name">account.asset.board.form</field>
        <field name="model">account.asset.board</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Asset board">
                <field name="name" select="1"/>
                <field name="asset_id" select="1"/>
                   <field name="value_gross" select="2"/>
                <field name="value_asset"/>
                <field name="value_asset_cumul"/>
                <field name="value_net"/>
        <field name="test"/>
            </form>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_board_tree">
        <field name="name">account.asset.board.tree</field>
        <field name="model">account.asset.board</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Asset board">
                <field name="name"/>
                <field name="asset_id"/>
                <field name="value_gross"/>
                <field name="value_asset"/>
                <field name="value_asset_cumul"/>
                <field name="value_net"/>
        <field name="test"/>
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="view_account_asset_asset_tree">
        <field name="name">account.asset.asset.tree</field>
        <field name="model">account.asset.asset</field>
        <field name="type">tree</field>
        <field name="field_parent">child_ids</field>
        <field name="arch" type="xml">
            <tree string="Assets">
                <field name="name"/>
                <field name="code"/>
                <field name="value_total"/>
                <field name="purchase_date"/>
                <field name="company_id" groups="base.group_multi_company"/>
                <field name="state"/>
            </tree>
        </field>
    </record>

{'fraction_non_alphanumeric': 0.15346897367976103, 'fraction_numerical': 0.005974187003325255, 'mean_word_length': 1.723979121891311, 'pattern_counts': {'":': 0, '<': 426, '<?xml version=': 2, '>': 426, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, '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': '1073362', 'n_tokens_mistral': 4872, 'n_tokens_neox': 4605, 'n_words': 861}