<commit_before><?xml version="1.0" encoding="utf-8"?>
<odoo>

    <!--
        Asset Category
     -->

    <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="arch" type="xml">
            <form string="Asset category">
                <group>
                    <div class="oe_title">
                        <label for="name" string="Asset Type" class="oe_edit_only" attrs="{'invisible': [('type','!=','purchase')]}"/>
                        <label for="name" string="Deferred Revenue Type" class="oe_edit_only" attrs="{'invisible': [('type','==','purchase')]}"/>
                        <h1>
                            <field name="name" placeholder="e.g. Computers"/>
                        </h1>
                    </div>
                    <group>
                        <field name="type" attrs="{'invisible': 1}"/>
                        <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
                    </group>
                    <group string="Journal Entries">
                        <field name="journal_id"/>
                        <div>
                            <label for="account_asset_id" attrs="{'invisible': [('type','!=','purchase')]}"/>
                            <label for="account_asset_id" string="Deferred Revenue Account" attrs="{'invisible': [('type','!=','sale')]}"/>
                        </div>
                        <field name="account_asset_id" nolabel="1" attrs="{'invisible': [('type','=', False)]}"/>
                        <div>
                            <label for="account_depreciation_id" attrs="{'invisible': [('type','!=','purchase')]}"/>
                            <label for="account_depreciation_id" string="Recognition Income Account" attrs="{'invisible': [('type','!=','sale')]}"/>
                        </div>
                        <field name="account_depreciation_id" nolabel="1"/>
                        <div>
                            <label for="account_depreciation_expense_id" attrs="{'invisible': [('type','!=','purchase')]}"/>
                            <label for="account_depreciation_expense_id" string="Recognition Account" attrs="{'invisible': [('type','!=','sale')]}"/>
                        </div>
                        <field name="account_depreciation_expense_id" nolabel="1"/>
                        <field name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
                    </group>
                    <group string="Periodicity">
                        <field name="method_time" string="Time Method Based On" widget="radio" attrs="{'invisible': [('type','!=','purchase')]}"/>
                        <field name="method_number" string="Number of Entries" attrs="{'invisible':['|',('method_time','!=','number'),'&amp;',('type','=', False)], 'required':[('method_time','=','number')]}"/>
                        <label for="method_period" string="One Entry Every"/>
                        <div>
                            <field name="method_period" nolabel="1" attrs="{'invisible': [('type','=', False)]}" class="oe_inline"/>
                            months
                        </div>
                        <field name="method_end" attrs="{'required': [('method_time','=','end')], 'invisible':[('method_time','!=','end')]}"/>
                    </group><commit_msg>[FIX] account_asset: domain in multicompany<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>

    <!--
        Asset Category
     -->

    <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="arch" type="xml">
            <form string="Asset category">
                <group>
                    <div class="oe_title">
                        <label for="name" string="Asset Type" class="oe_edit_only" attrs="{'invisible': [('type','!=','purchase')]}"/>
                        <label for="name" string="Deferred Revenue Type" class="oe_edit_only" attrs="{'invisible': [('type','==','purchase')]}"/>
                        <h1>
                            <field name="name" placeholder="e.g. Computers"/>
                        </h1>
                    </div>
                    <group>
                        <field name="type" attrs="{'invisible': 1}"/>
                        <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
                    </group>
                    <group string="Journal Entries">
                        <field name="journal_id"/>
                        <div>
                            <label for="account_asset_id" attrs="{'invisible': [('type','!=','purchase')]}"/>
                            <label for="account_asset_id" string="Deferred Revenue Account" attrs="{'invisible': [('type','!=','sale')]}"/>
                        </div>
                        <field name="account_asset_id" nolabel="1" attrs="{'invisible': [('type','=', False)]}" domain="[('company_id', '=', company_id)]"/>
                        <div>
                            <label for="account_depreciation_id" attrs="{'invisible': [('type','!=','purchase')]}"/>
                            <label for="account_depreciation_id" string="Recognition Income Account" attrs="{'invisible': [('type','!=','sale')]}"/>
                        </div>
                        <field name="account_depreciation_id" nolabel="1" domain="[('company_id', '=', company_id)]"/>
                        <div>
                            <label for="account_depreciation_expense_id" attrs="{'invisible': [('type','!=','purchase')]}"/>
                            <label for="account_depreciation_expense_id" string="Recognition Account" attrs="{'invisible': [('type','!=','sale')]}"/>
                        </div>
                        <field name="account_depreciation_expense_id" nolabel="1" domain="[('company_id', '=', company_id)]"/>
                        <field name="account_analytic_id" domain="[('company_id', '=', company_id)]" groups="analytic.group_analytic_accounting"/>
                    </group>
                    <group string="Periodicity">
                        <field name="method_time" string="Time Method Based On" widget="radio" attrs="{'invisible': [('type','!=','purchase')]}"/>
                        <field name="method_number" string="Number of Entries" attrs="{'invisible':['|',('method_time','!=','number'),'&amp;',('type','=', False)], 'required':[('method_time','=','number')]}"/>
                        <label for="method_period" string="One Entry Every"/>
                        <div>
                            <field name="method_period" nolabel="1" attrs="{'invisible': [('type','=', False)]}" class="oe_inline"/>
                            months
                        </div>
                        <field name="method_end" attrs="{'required': [('method_time','=','end')], 'invisible':[('method_time','!=','end')]}"/>
                    </group>
{'fraction_non_alphanumeric': 0.1907858328721638, 'fraction_numerical': 0.002767017155506364, 'mean_word_length': 1.888134238913304, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 2, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5930061', 'n_tokens_mistral': 1969, 'n_tokens_neox': 1880, 'n_words': 319}