<commit_before><?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_move_form" model="ir.ui.view">
        <field name="name">account.move.form.account.asset.management</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_move_form" />
        <field name="arch" type="xml">
            <xpath expr="//div[hasclass('oe_button_box')]" position="inside">
                <button
                    name="action_view_assets"
                    type="object"
                    class="oe_stat_button"
                    icon="fa-cube"
                    attrs="{'invisible': [('asset_count', '=', 0)]}"
                >
                    <div class="o_field_widget o_stat_info">
                        <span class="o_stat_value">
                            <field name="asset_count" />
                        </span>
                        <span class="o_stat_text"> Asset(s)</span>
                    </div>
                </button>
            </xpath>
            <xpath
                expr="//field[@name='invoice_line_ids']/tree/field[@name='quantity']"
                position="before"
            >
                <field
                    name="asset_profile_id"
                    domain="[('company_id','=', parent.company_id)]"
                    attrs="{'column_invisible': [('parent.type', 'not in', ('in_invoice', 'in_refund'))]}"
                />
                <field
                    name="asset_id"
                    attrs="{'column_invisible': [('parent.type', 'not in', ('out_invoice', 'out_refund'))]}"
                    groups="account.group_account_manager"
                />
            </xpath>
            <xpath
                expr="//notebook//field[@name='line_ids']/tree/field[@name='date_maturity']"
                position="after"
            >
                <field
                    name="asset_profile_id"
                    domain="[('company_id','=', parent.company_id)]"
                />
                <field name="asset_id" groups="account.group_account_manager" />
            </xpath>
        </field>
    </record>
</odoo><commit_msg>[13.0][IMP]account_asset_management: add optional attribute for added columns in invoice lines<commit_after><?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_move_form" model="ir.ui.view">
        <field name="name">account.move.form.account.asset.management</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_move_form" />
        <field name="arch" type="xml">
            <xpath expr="//div[hasclass('oe_button_box')]" position="inside">
                <button
                    name="action_view_assets"
                    type="object"
                    class="oe_stat_button"
                    icon="fa-cube"
                    attrs="{'invisible': [('asset_count', '=', 0)]}"
                >
                    <div class="o_field_widget o_stat_info">
                        <span class="o_stat_value">
                            <field name="asset_count" />
                        </span>
                        <span class="o_stat_text"> Asset(s)</span>
                    </div>
                </button>
            </xpath>
            <xpath
                expr="//field[@name='invoice_line_ids']/tree/field[@name='quantity']"
                position="before"
            >
                <field
                    name="asset_profile_id"
                    domain="[('company_id','=', parent.company_id)]"
                    attrs="{'column_invisible': [('parent.type', 'not in', ('in_invoice', 'in_refund'))]}"
                    optional="show"
                />
                <field
                    name="asset_id"
                    attrs="{'column_invisible': [('parent.type', 'not in', ('out_invoice', 'out_refund'))]}"
                    groups="account.group_account_manager"
                    optional="show"
                />
            </xpath>
            <xpath
                expr="//notebook//field[@name='line_ids']/tree/field[@name='date_maturity']"
                position="after"
            >
                <field
                    name="asset_profile_id"
                    domain="[('company_id','=', parent.company_id)]"
                />
                <field name="asset_id" groups="account.group_account_manager" />
            </xpath>
        </field>
    </record>
</odoo>
{'fraction_non_alphanumeric': 0.15047576897543705, 'fraction_numerical': 0.0024341668510732464, 'mean_word_length': 1.4261943102522812, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 2, '>': 65, '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': '3512881', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1193, 'n_words': 168}