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

        <record id="view_category_property_form" model="ir.ui.view">
            <field name="name">product.category.stock.property.form.inherit</field>
            <field name="model">product.category</field>
            <field name="inherit_id" ref="account.view_category_property_form"/>
            <field name="arch" type="xml">
                <group name="account_property" position="inside">
                    <group name="account_stock_property" string="Account Stock Properties" groups="account.group_account_user">
                        <field name="property_stock_account_input_categ_id" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}" />
                        <field name="property_stock_account_output_categ_id" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}" />
                        <field name="property_stock_valuation_account_id" options="{'no_create': True}" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}"/>
                        <field name="property_stock_journal" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}" />
                    </group>
                </group>
                <group name="account_property" position="before">
                    <group>
                        <group string="Inventory Valuation">
                            <field name="property_cost_method"/>
                            <field name="property_valuation" groups="account.group_account_user"/>
                        </group>
                    </group>
                </group>
            </field>
        </record>

        <record id="view_template_property_form" model="ir.ui.view">
            <field name="name">product.template.stock.property.form.inherit</field>
            <field name="model">product.template</field>
            <field name="inherit_id" ref="product.product_template_form_view"/>
            <field name="arch" type="xml">
                <data>
                    <field name="list_price" position="after">
                        <field name="valuation" invisible="1" readonly="1"/>
                        <field name="cost_method" invisible="1" readonly="1"/>
                    </field>
                    <field name="standard_price" position="replace">
                        <field name="standard_price"
                            attrs="{'readonly':[('cost_method', '!=', 'fifo')]}"
                            widget='monetary' options="{'currency_field': 'cost_currency_id', 'field_digits': True}"
                            class="oe_inline"/>
                    </field>
                    <xpath expr="//div[@name='standard_price_uom']" position="inside">
                        <span name="update_cost_price">
                            <button string="Update Cost" type="action"
                                name="%(action_view_change_standard_price)d"
                                attrs="{'invisible':['|', ('cost_method', '=', 'fifo'), ('product_variant_count', '>', 1)]}"
                                class="oe_link pt-0 oe_inline"/>
                        </span>
                    </xpath>
                </data>
            </field>
        </record>

        <record id="product_product_normal_form_view_inherit" model="ir.ui.view">
            <field name="name">product.product.normal.form.view.inherit</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_normal_form_view"/>
            <field name="arch" type="xml">
                <data>
                    <field name="standard_price" position="replace">
                        <field name="standard_price"
                            attrs="{'readonly':[('cost_method', '!=', 'fifo')]}"
                            widget='monetary' options="{'currency_field': 'cost_currency_id', 'field_digits': True}"
                            class="oe_inline"/>
                    </field>
                    <xpath expr="//div[@name='standard_price_uom']" position="inside">
                        <span name="update_cost_price">
                            <button string="Update Cost" type="action"
                                name="%(action_view_change_standard_price)d"
                                attrs="{'invisible':['|', ('cost_method', '=', 'fifo'), ('product_variant_count', '=', 1)]}"
                                class="oe_link pt-0 oe_inline"/>
                        </span>
                    </xpath>
                </data>
            </field>
        </record>

        <record id="product_variant_easy_edit_view_inherit" model="ir.ui.view">
            <field name="name">product.product.product.view.form.easy.inherit</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_variant_easy_edit_view"/>
            <field name="arch" type="xml">
                <data>
                    <field name="standard_price" position="replace">
                        <field name="valuation" invisible="1" readonly="1"/>
                        <field name="cost_method" invisible="1" readonly="1"/>
                        <div class="o_td_label" name="update_cost_price">
                            <label for="standard_price"/>
                            <button string="Update Cost" type="action"<commit_msg>[FIX] stock_account: avoid to display two 'Update Cost' button<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>

        <record id="view_category_property_form" model="ir.ui.view">
            <field name="name">product.category.stock.property.form.inherit</field>
            <field name="model">product.category</field>
            <field name="inherit_id" ref="account.view_category_property_form"/>
            <field name="arch" type="xml">
                <group name="account_property" position="inside">
                    <group name="account_stock_property" string="Account Stock Properties" groups="account.group_account_user">
                        <field name="property_stock_account_input_categ_id" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}" />
                        <field name="property_stock_account_output_categ_id" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}" />
                        <field name="property_stock_valuation_account_id" options="{'no_create': True}" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}"/>
                        <field name="property_stock_journal" attrs="{'required':[ ('property_valuation', '=', 'real_time')]}" />
                    </group>
                </group>
                <group name="account_property" position="before">
                    <group>
                        <group string="Inventory Valuation">
                            <field name="property_cost_method"/>
                            <field name="property_valuation" groups="account.group_account_user"/>
                        </group>
                    </group>
                </group>
            </field>
        </record>

        <record id="view_template_property_form" model="ir.ui.view">
            <field name="name">product.template.stock.property.form.inherit</field>
            <field name="model">product.template</field>
            <field name="inherit_id" ref="product.product_template_form_view"/>
            <field name="arch" type="xml">
                <data>
                    <field name="list_price" position="after">
                        <field name="valuation" invisible="1" readonly="1"/>
                        <field name="cost_method" invisible="1" readonly="1"/>
                    </field>
                    <field name="standard_price" position="replace">
                        <field name="standard_price"
                            attrs="{'readonly':[('cost_method', '!=', 'fifo')]}"
                            widget='monetary' options="{'currency_field': 'cost_currency_id', 'field_digits': True}"
                            class="oe_inline"/>
                    </field>
                    <xpath expr="//div[@name='standard_price_uom']" position="inside">
                        <span name="update_cost_price">
                            <button string="Update Cost" type="action"
                                name="%(action_view_change_standard_price)d"
                                attrs="{'invisible':['|', ('cost_method', '=', 'fifo'), ('product_variant_count', '>', 1)]}"
                                class="oe_link pt-0 oe_inline"/>
                        </span>
                    </xpath>
                </data>
            </field>
        </record>

        <record id="product_product_normal_form_view_inherit" model="ir.ui.view">
            <field name="name">product.product.normal.form.view.inherit</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_normal_form_view"/>
            <field name="arch" type="xml">
                <data>
                    <field name="standard_price" position="replace">
                        <field name="standard_price"
                            attrs="{'readonly':[('cost_method', '!=', 'fifo')]}"
                            widget='monetary' options="{'currency_field': 'cost_currency_id', 'field_digits': True}"
                            class="oe_inline"/>
                    </field>
                    <xpath expr="//button[@name='%(action_view_change_standard_price)d']" position="attributes">
                        <attribute name="attrs">{'invisible': ['|', ('cost_method', '=', 'fifo'), ('product_variant_count', '=', 1)]}</attribute>
                    </xpath>
                </data>
            </field>
        </record>

        <record id="product_variant_easy_edit_view_inherit" model="ir.ui.view">
            <field name="name">product.product.product.view.form.easy.inherit</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_variant_easy_edit_view"/>
            <field name="arch" type="xml">
                <data>
                    <field name="standard_price" position="replace">
                        <field name="valuation" invisible="1" readonly="1"/>
                        <field name="cost_method" invisible="1" readonly="1"/>
                        <div class="o_td_label" name="update_cost_price">
                            <label for="standard_price"/>
                            <button string="Update Cost" type="action"
{'fraction_non_alphanumeric': 0.14765850479471185, 'fraction_numerical': 0.002699934829159296, 'mean_word_length': 1.798853569567483, 'pattern_counts': {'":': 0, '<': 170, '<?xml version=': 2, '>': 170, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '818', 'n_tokens_mistral': 2801, 'n_tokens_neox': 2688, 'n_words': 429}