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

        <record model="ir.ui.view" id="base_sale_multichannels_view_shop_form">
            <field name="name">base_sale_multichannels_view_shop_form</field>
            <field name="model">sale.shop</field>
            <field name="inherit_id" ref="sale.view_shop_form" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <data>
                    <field name="payment_default_id" position="after">
                        <field name="sale_journal" domain="[('type','=','sale')]"/>
                    </field>
                    <form position="inside">
                        <separator string="Sale Multi Channels" colspan="4" />
                        <notebook colspan="4">
                            <page string="External Shop Settings">
                                <group col="4" colspan="4">
                                    <field name="referential_id" />
                                    <field name="shop_group_id" />
                                </group>
                            </page>
                            <page string="Extra Information">
                                <separator string='Accounting' colspan="4"/>
                                    <field name="auto_import"/>
                                    <field name="is_tax_included"/>
                                    <field name="use_external_tax"/>
                                    <field name="check_total_amount"/>
                                    <field name="order_prefix"/>
                                    <field name="default_payment_method_id"/>
                                    <field name="default_fiscal_position"/>
                                    <field name="default_customer_account"/>
                                    <field name="default_customer_lang"/>
                                <separator string='Stock' colspan="4"/>
                                    <field name="product_stock_field_id"/>
                                <separator string='Other Information' colspan="4"/>
                                    <field name="address_id" colspan="2" />
                                    <field name="website" colspan="2" />
                                    <field name="image" widget='image' colspan="2" />
                            </page>
                        </notebook>
                    </form>
                </data>
            </field>
        </record>

        <record model="ir.ui.view" id="base_sale_multichannel_view_order_tree">
            <field name="name">base_sale_multichannel_view_order_tree</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_order_tree" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <field name="state" position="after">
                    <field name="need_to_update" />
                </field>
                <field name="amount_total" position="after">
                    <field name="ext_total_amount" string="Ext. Total" />
                </field>
            </field>
        </record>

        <record id="view_sales_order_filter" model="ir.ui.view">
            <field name="name">base_sale_multichannel.view_sales_order_filter</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_sales_order_filter" />
            <field name="type">search</field>
            <field eval="32" name="priority"/>
            <field name="arch" type="xml">
                <filter icon="terp-check" string="Sales" position="after">
                    <separator orientation="vertical"/>
                    <filter icon="gtk-refresh" name="to-update" string="TO UPDATE" domain="[('need_to_update','!=',False)]"/>
                </filter>
            </field>
        </record>

        <record model="ir.ui.view" id="base_sale_multichannel_view_order_form">
            <field name="name">base_sale_multichannel_view_order_form</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale_automatic_workflow.sale_order_view_form" />
            <field name="type">form</field>
            <field eval="30" name="priority"/>
            <field name="arch" type="xml">
                <data>
                    <group name="automatic_workflow" position="after">
                        <field name="referential_id" invisible="True"/>
                        <group name="external_payment" attrs="{'invisible': [('referential_id', '=', False)]}">
                            <separator string="External Payment" colspan="4"/>
                            <field name="ext_total_amount" />
                            <field name="need_to_update" />
                        </group>
                    </group>
                    <xpath expr="/form/notebook/page/field/form/notebook/page[@string='Order Line']/group" position="after">
                        <group name='External Information' colspan="4">
                            <separator string="External Information" colspan="4" />
                            <field name="ext_product_ref" />
                        </group>
                    </xpath>
                </data>
            </field>
        </record>

        <record model="ir.ui.view" id="base_sale_multichannel_view_order_line_tree">
            <field name="name">base_sale_multichannel_view_order_tree</field>
            <field name="model">sale.order.line</field>
            <field name="inherit_id" ref="sale.view_order_line_tree" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <data>
                    <field name="product_id" position="after">
                        <field name="ext_product_ref" />
                    </field>
                </data>
            </field>
        </record>

        <record model="ir.ui.view" id="base_sale_multichannel_view_order_line_form">
            <field name="name">base_sale_multichannel_view_order_form</field>
            <field name="model">sale.order.line</field>
            <field name="inherit_id" ref="sale.view_order_line_form2" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <data>
                    <field name="notes" position="after">
                        <group name='External Syncronization' colspan="4">
                            <separator string="External syncronization" colspan="4" />
                            <field name="ext_product_ref" select="1" />
                        </group>
                    </field>
                </data>
            </field>
        </record><commit_msg>[IMP] base_sale_multichannels : show external sale order line id in form view<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record model="ir.ui.view" id="base_sale_multichannels_view_shop_form">
            <field name="name">base_sale_multichannels_view_shop_form</field>
            <field name="model">sale.shop</field>
            <field name="inherit_id" ref="sale.view_shop_form" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <data>
                    <field name="payment_default_id" position="after">
                        <field name="sale_journal" domain="[('type','=','sale')]"/>
                    </field>
                    <form position="inside">
                        <separator string="Sale Multi Channels" colspan="4" />
                        <notebook colspan="4">
                            <page string="External Shop Settings">
                                <group col="4" colspan="4">
                                    <field name="referential_id" />
                                    <field name="shop_group_id" />
                                </group>
                            </page>
                            <page string="Extra Information">
                                <separator string='Accounting' colspan="4"/>
                                    <field name="auto_import"/>
                                    <field name="is_tax_included"/>
                                    <field name="use_external_tax"/>
                                    <field name="check_total_amount"/>
                                    <field name="order_prefix"/>
                                    <field name="default_payment_method_id"/>
                                    <field name="default_fiscal_position"/>
                                    <field name="default_customer_account"/>
                                    <field name="default_customer_lang"/>
                                <separator string='Stock' colspan="4"/>
                                    <field name="product_stock_field_id"/>
                                <separator string='Other Information' colspan="4"/>
                                    <field name="address_id" colspan="2" />
                                    <field name="website" colspan="2" />
                                    <field name="image" widget='image' colspan="2" />
                            </page>
                        </notebook>
                    </form>
                </data>
            </field>
        </record>

        <record model="ir.ui.view" id="base_sale_multichannel_view_order_tree">
            <field name="name">base_sale_multichannel_view_order_tree</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_order_tree" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <field name="state" position="after">
                    <field name="need_to_update" />
                </field>
                <field name="amount_total" position="after">
                    <field name="ext_total_amount" string="Ext. Total" />
                </field>
            </field>
        </record>

        <record id="view_sales_order_filter" model="ir.ui.view">
            <field name="name">base_sale_multichannel.view_sales_order_filter</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_sales_order_filter" />
            <field name="type">search</field>
            <field eval="32" name="priority"/>
            <field name="arch" type="xml">
                <filter icon="terp-check" string="Sales" position="after">
                    <separator orientation="vertical"/>
                    <filter icon="gtk-refresh" name="to-update" string="TO UPDATE" domain="[('need_to_update','!=',False)]"/>
                </filter>
            </field>
        </record>

        <record model="ir.ui.view" id="base_sale_multichannel_view_order_form">
            <field name="name">base_sale_multichannel_view_order_form</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale_automatic_workflow.sale_order_view_form" />
            <field name="type">form</field>
            <field eval="30" name="priority"/>
            <field name="arch" type="xml">
                <data>
                    <group name="automatic_workflow" position="after">
                        <field name="referential_id" invisible="True"/>
                        <group name="external_payment" attrs="{'invisible': [('referential_id', '=', False)]}">
                            <separator string="External Payment" colspan="4"/>
                            <field name="ext_total_amount" />
                            <field name="need_to_update" />
                        </group>
                    </group>
                    <xpath expr="/form/notebook/page/field/form/notebook/page[@string='Order Line']/group" position="after">
                        <group name='External Information' colspan="4">
                            <separator string="External Information" colspan="4" />
                            <field name="ext_product_ref" />
                            <field name="ext_ref_line" select="1" />
                        </group>
                    </xpath>
                </data>
            </field>
        </record>

        <record model="ir.ui.view" id="base_sale_multichannel_view_order_line_tree">
            <field name="name">base_sale_multichannel_view_order_tree</field>
            <field name="model">sale.order.line</field>
            <field name="inherit_id" ref="sale.view_order_line_tree" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <data>
                    <field name="product_id" position="after">
                        <field name="ext_product_ref" />
                    </field>
                </data>
            </field>
        </record>

        <record model="ir.ui.view" id="base_sale_multichannel_view_order_line_form">
            <field name="name">base_sale_multichannel_view_order_form</field>
            <field name="model">sale.order.line</field>
            <field name="inherit_id" ref="sale.view_order_line_form2" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <data>
                    <field name="notes" position="after">
                        <group name='External Syncronization' colspan="4">
                            <separator string="External syncronization" colspan="4" />
                            <field name="ext_product_ref" select="1" />
                            <field name="ext_ref_line" select="1" />
                        </group>
                    </field>
                </data>
            </field>
        </record>
{'fraction_non_alphanumeric': 0.12924244594014034, 'fraction_numerical': 0.0035801231562365746, 'mean_word_length': 1.4281988873435327, 'pattern_counts': {'":': 0, '<': 293, '<?xml version=': 2, '>': 293, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4723165', 'n_tokens_mistral': 3658, 'n_tokens_neox': 3395, 'n_words': 579}