<commit_before><?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>

        <menuitem id="menu_transsmart_configuration" parent="stock.menu_stock_configuration" name="Transsmart" sequence="15"/>

        <record id="product_transsmart_view" model="ir.ui.view">
            <field name="name">product.product.transsmart.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="active" position="after">
                  <field name="service_level_id"/>
                  <field name="service_level_time_id"/>
                </field>
            </field>
        </record>

        <record id="sale_order_trasnssmart_view" model="ir.ui.view">
            <field name="name">sale.order.transsmart.form</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_order_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='date_order']" position="after">
                    <field name="cost_center_id"/>
                    <field name="delivery_service_level_time_id" domain="[('pre_book','=',True)]"/>
                </xpath>

                <xpath expr="//label[@for='carrier_id']" position="attributes">
                    <attribute name="invisible">1</attribute>
                </xpath>

                <xpath expr="//field[@name='carrier_id']" position="attributes"><commit_msg>[FIX] make delivery_service_level_time_id field on sale_order required<commit_after><?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>

        <menuitem id="menu_transsmart_configuration" parent="stock.menu_stock_configuration" name="Transsmart" sequence="15"/>

        <record id="product_transsmart_view" model="ir.ui.view">
            <field name="name">product.product.transsmart.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="active" position="after">
                  <field name="service_level_id"/>
                  <field name="service_level_time_id"/>
                </field>
            </field>
        </record>

        <record id="sale_order_trasnssmart_view" model="ir.ui.view">
            <field name="name">sale.order.transsmart.form</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_order_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='date_order']" position="after">
                    <field name="cost_center_id"/>
                    <field
                        name="delivery_service_level_time_id"
                        domain="[('pre_book','=',True)]"
                        required="1" />
                </xpath>

                <xpath expr="//label[@for='carrier_id']" position="attributes">
                    <attribute name="invisible">1</attribute>
                </xpath>

                <xpath expr="//field[@name='carrier_id']" position="attributes">
{'fraction_non_alphanumeric': 0.15429627348321528, 'fraction_numerical': 0.004003695719125347, 'mean_word_length': 2.2447552447552446, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 2, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '252365', 'n_tokens_mistral': 934, 'n_tokens_neox': 883, 'n_words': 134}