<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!-- Country -->
        <record id="view_country_tree" model="ir.ui.view">
            <field name="name">res.country.tree</field>
            <field name="model">res.country</field>
            <field name="inherit_id" ref="base.view_country_tree"/>
            <field name="arch" type="xml">
                <field name="code" position="after">
                    <field name="intrastat"/>
                </field>
            </field>
        </record>

        <record id="view_country_form" model="ir.ui.view">
            <field name="name">res.country.form</field>
            <field name="model">res.country</field>
            <field name="inherit_id" ref="base.view_country_form"/>
            <field name="arch" type="xml">
                <field name="code" position="after">
                    <field name="intrastat"/>
                </field>
            </field>
        </record>

        <!-- Product -->
        <record id="product_normal_form_view" model="ir.ui.view">
            <field name="name">product.normal.form</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_normal_form_view"/>
            <field name="arch" type="xml">
                <field name="product_manager" position="after">
                    <field name="intrastat_id"
                        attrs="{'readonly': [('is_product_variant', '=', False)]}"/>
                </field>
            </field>
        </record>

        <!-- Intrastat code -->
        <record id="view_report_intrastat_code_tree" model="ir.ui.view">
            <field name="name">report.intrastat.code.tree</field>
            <field name="model">report.intrastat.code</field>
            <field name="arch" type="xml">
                <tree string="Intrastat code">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>
        <record id="view_report_intrastat_code_form" model="ir.ui.view">
            <field name="name">report.intrastat.code.form</field>
            <field name="model">report.intrastat.code</field>
            <field name="arch" type="xml">
                <form string="Intrastat Code">
                    <group>
                        <field name="name"/>
                        <field name="description"/>
                    </group>
                </form>
            </field>
        </record>
        <record id="action_report_intrastat_code_tree" model="ir.actions.act_window">
            <field name="name">Intrastat Code</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">report.intrastat.code</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>

        <menuitem action="action_report_intrastat_code_tree" id="menu_report_intrastat_code" 
                parent="base.menu_config_address_book" sequence="2" groups="base.group_no_one"/>


        <record id="view_report_intrastat_tree" model="ir.ui.view">
            <field name="name">report.intrastat.view</field>
            <field name="model">report.intrastat</field>
            <field name="arch" type="xml">
                <tree string="Intrastat Data" create="false">
                    <field name="name" />
                    <field name="month"/>
                    <field name="code"/>
                    <field name="ref"/>
                    <field name="intrastat_id"/>
                    <field name="weight"/>
                    <field name="value"/>
                    <field name="supply_units"/>
                    <field name="currency_id" groups="base.group_multi_currency"/>
                    <field name="type"/>
                </tree>
            </field>
        </record>

        <record id="view_report_intrastat_search" model="ir.ui.view">
            <field name="name">report.intrastat.search</field>
            <field name="model">report.intrastat</field>
            <field name="arch" type="xml">
                <search string="Intrastat Data">
                    <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Intrastat Data"/>
                    <field name="month"/>
                    <field name="type"/>
                    <field name="intrastat_id"/>
                </search>
            </field>
        </record>

        <record id="action_report_intrastat_tree_all" model="ir.actions.act_window">
            <field name="name">Intrastat</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">report.intrastat</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
            <field name="search_view_id" ref="view_report_intrastat_search"/>
        </record>

        <menuitem action="action_report_intrastat_tree_all" id="menu_report_intrastat_all" 
                parent="stock.next_id_61" sequence="6"/>
    </data>
</openerp>
<commit_msg>[IMP] report intrasat: move field from the view of product product to product template<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!-- Country -->
        <record id="view_country_tree" model="ir.ui.view">
            <field name="name">res.country.tree</field>
            <field name="model">res.country</field>
            <field name="inherit_id" ref="base.view_country_tree"/>
            <field name="arch" type="xml">
                <field name="code" position="after">
                    <field name="intrastat"/>
                </field>
            </field>
        </record>

        <record id="view_country_form" model="ir.ui.view">
            <field name="name">res.country.form</field>
            <field name="model">res.country</field>
            <field name="inherit_id" ref="base.view_country_form"/>
            <field name="arch" type="xml">
                <field name="code" position="after">
                    <field name="intrastat"/>
                </field>
            </field>
        </record>

        <!-- Product -->
        <record id="product_template_form_view" model="ir.ui.view">
            <field name="name">product.template.form</field>
            <field name="model">product.template</field>
            <field name="inherit_id" ref="product.product_template_form_view"/>
            <field name="arch" type="xml">
                <field name="product_manager" position="after">
                    <field name="intrastat_id"/>
                </field>
            </field>
        </record>

        <!-- Intrastat code -->
        <record id="view_report_intrastat_code_tree" model="ir.ui.view">
            <field name="name">report.intrastat.code.tree</field>
            <field name="model">report.intrastat.code</field>
            <field name="arch" type="xml">
                <tree string="Intrastat code">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>
        <record id="view_report_intrastat_code_form" model="ir.ui.view">
            <field name="name">report.intrastat.code.form</field>
            <field name="model">report.intrastat.code</field>
            <field name="arch" type="xml">
                <form string="Intrastat Code">
                    <group>
                        <field name="name"/>
                        <field name="description"/>
                    </group>
                </form>
            </field>
        </record>
        <record id="action_report_intrastat_code_tree" model="ir.actions.act_window">
            <field name="name">Intrastat Code</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">report.intrastat.code</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>

        <menuitem action="action_report_intrastat_code_tree" id="menu_report_intrastat_code" 
                parent="base.menu_config_address_book" sequence="2" groups="base.group_no_one"/>


        <record id="view_report_intrastat_tree" model="ir.ui.view">
            <field name="name">report.intrastat.view</field>
            <field name="model">report.intrastat</field>
            <field name="arch" type="xml">
                <tree string="Intrastat Data" create="false">
                    <field name="name" />
                    <field name="month"/>
                    <field name="code"/>
                    <field name="ref"/>
                    <field name="intrastat_id"/>
                    <field name="weight"/>
                    <field name="value"/>
                    <field name="supply_units"/>
                    <field name="currency_id" groups="base.group_multi_currency"/>
                    <field name="type"/>
                </tree>
            </field>
        </record>

        <record id="view_report_intrastat_search" model="ir.ui.view">
            <field name="name">report.intrastat.search</field>
            <field name="model">report.intrastat</field>
            <field name="arch" type="xml">
                <search string="Intrastat Data">
                    <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Intrastat Data"/>
                    <field name="month"/>
                    <field name="type"/>
                    <field name="intrastat_id"/>
                </search>
            </field>
        </record>

        <record id="action_report_intrastat_tree_all" model="ir.actions.act_window">
            <field name="name">Intrastat</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">report.intrastat</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
            <field name="search_view_id" ref="view_report_intrastat_search"/>
        </record>

        <menuitem action="action_report_intrastat_tree_all" id="menu_report_intrastat_all" 
                parent="stock.next_id_61" sequence="6"/>
    </data>
</openerp>

{'fraction_non_alphanumeric': 0.15027348622972844, 'fraction_numerical': 0.001343441128490548, 'mean_word_length': 1.8428805237315875, 'pattern_counts': {'":': 0, '<': 265, '<?xml version=': 2, '>': 265, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '7242624', 'n_tokens_mistral': 2949, 'n_tokens_neox': 2831, 'n_words': 468}