<commit_before><?xml version="1.0"?>
<openerp>
    <data>
        <!--Destinations:-->
    <record id="view_res_partner_destination_extra_search" model="ir.ui.view">
        <field name="name">res_partner_destination</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="account_trip.view_res_partner_destination_search" />
        <field name="arch" type="xml">
           <field name="tour1_id" position="after">
               <field name="trip_supplier_facility_code" />                   
               <field name="trip_supplier_destination_code" />               
           </field>
        </field>
    </record>       
    <record model="ir.ui.view" id="view_res_partner_destination_extra_form">
        <field name="name">res.partner.form</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="account_trip.view_res_partner_destination_form" />
        <field name="arch" type="xml">
            <field name="tour2_id" position="after">
               <field name="trip_supplier_facility_code" />                   
               <field name="trip_supplier_destination_code" />                               
            </field>
        </field>
    </record>

    <!-- edi.company -->
    <record model="ir.ui.view" id="edi_company_trip_parameter_form_view">
        <field name="name">Trip company</field>
        <field name="model">edi.company</field>
        <field name="arch" type="xml">
            <form string="EDI Company" version="7.0">                
                <group colspan="4" col="6">
                    <field name="import" />
                    <field name="name" />
                    <newline />
                    
                    <field name="partner_id" />
                    <field name="type_importation_id" />
                    <newline />

		            <field name="trip_import_folder" />
		            <field name="trip_todo_file" />
		            <field name="trip_delete_folder" />
		        </group>
            </form>
        </field>
    </record>

    <record model="ir.ui.view" id="edi_company_trip_parameter_tree_view">
        <field name="name">Trip company</field>
        <field name="model">edi.company</field>
        <field name="arch" type="xml">
            <tree string="EDI Company">
                <field name="import" />
                <field name="name" />
                <field name="type_importation_id" />
                <field name="partner_id" />
	            <field name="trip_import_folder" />
	            <field name="trip_todo_file" />
	            <field name="trip_delete_folder" />
            </tree>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_edi_company_trip_parameter">
        <field name="name">EDI company</field>
        <field name="res_model">edi.company</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="view_id" ref="edi_company_trip_parameter_tree_view"/>
    </record>
    
       <!-- trip.edi.line-->
       <record id="trip_edi_line_search_view" model="ir.ui.view">
            <field name="name">EDI line</field>
            <field name="model">trip.edi.line</field>
            <field name="arch" type="xml">
                <search string="File EDI">
                   <field name="company_id" />
                   <field name="date" />
                   <field name="name" />
                   <field name="number" />
                   <field name="type" />
                   <field name="deadline" />
                   <field name="customer" />
                   <field name="destination" />
                   <field name="destination_id" />
                   <field name="tour1_id" />
                   <field name="tour2_id" />
                   <field name="tour1_id" string="All tour" filter_domain="['|',('tour1_id','=',self),('tour2_id','=',self)]" />
                                      
                   <separator/>
                   <filter name="type_create" string="Create" domain="[('type','=','create')]"/>
                   <filter name="type_force" string="Force" domain="[('type','=','force')]"/>
                   <filter name="type_importing" string="Importing" domain="[('type','=','importing')]"/>
                   <filter name="type_deleting" string="To delete" domain="[('type','=','deleting')]"/>
                   <filter name="type_delete" string="Delete" domain="[('type','=','delete')]"/>
                   <filter name="type_anomaly" string="Anomaly" domain="[('type','=','anomaly')]"/>
                   <separator/>

                   <filter name="priority_high" string="Urgent" domain="[('priority','=','high')]"/>
                   <separator/>
                   <filter name="recursion_test" string="Recursion" domain="[('recursion','>',1)]"/>                   
                   <filter name="destination_test" string="Destination missing" domain="[('type','=','create'),('destination_id','=',False)]"/>                   
                   <filter name="trip_test" string="Trip not present" domain="[('type','=','create'),('tour1_id','=',False),('tour2_id','=',False)]"/>                   

                   <separator/>
                    <group expand="1" string="Group By...">
                        <filter name="group_date" string="Date" domain="[]" context="{'group_by':'date'}"/>
                        <filter name="group_deadline" string="Deadline" domain="[]" context="{'group_by':'deadline'}"/>
                        <filter name="group_number" string="Number" domain="[]" context="{'group_by':'number'}"/>
                        <filter name="group_type" string="Type" domain="[]" context="{'group_by':'type'}"/>
                        <filter name="group_priority" string="Priority" domain="[]" context="{'group_by':'priority'}"/>
                        <filter name="group_customer" string="Customer" domain="[]" context="{'group_by':'customer'}"/>
                        <filter name="group_destination" string="Customer destination" domain="[]" context="{'group_by':'destination'}"/>
                        <filter name="group_destination_id" string="Destination" domain="[]" context="{'group_by':'destination_id'}"/>
                        <filter name="group_company_id" string="Company" domain="[]" context="{'group_by':'company_id'}"/>
                        <filter name="group_tour1_id" string="Trip 1" domain="[]" context="{'group_by':'tour1_id'}"/>
                        <filter name="group_tour2_id" string="Trip 2" domain="[]" context="{'group_by':'tour2_id'}"/>
                    </group>                   
                </search>
            </field>
       </record>         

       <record id="trip_edi_line_tree_view" model="ir.ui.view">
            <field name="name">EDI line</field>
            <field name="model">trip.edi.line</field>
            <field name="arch" type="xml">
                <tree string="File EDI" colors="red:type=='delete';blue:type=='deleting';green:type=='forced';brown:type=='create' and destination_id == False">
                   <field name="company_id" />
                   <field name="timestamp" />
                   <field name="date" />
                   <field name="number" />
                   <field name="deadline" />
                   <field name="recursion" />
                   <field name="customer" />
                   <field name="destination" />
                   <field name="destination_id" />
                   <field name="tour1_id" />
                   <field name="tour2_id" />
                   <field name="type" />
                   <field name="priority" invisible="1"/>
                   <button name="action_null" string="Urg." type="object" icon="gtk-about" attrs="{'invisible': [('priority','!=','high')]}"/>
                   <field name="name" />                   
                   <button name="delete_order" type="object" string="Delete order" icon="gtk-delete" invisible="context.get('hide_delete',True)"/>
                   <button name="force_import" type="object" string="Force import order" icon="gtk-refresh" attrs="{'invisible':['|',('recursion','>',1),('type','!=','create')]}" />
                   <button name="unforce_import" type="object" string="Unforce import order" icon="gtk-undo" attrs="{'invisible':[('type','!=','forced')]}" />
                </tree>
            </field>
       </record>         

       <record id="trip_edi_line_form_view" model="ir.ui.view">
            <field name="name">EDI line</field><commit_msg>string<commit_after><?xml version="1.0"?>
<openerp>
    <data>
        <!--Destinations:-->
    <record id="view_res_partner_destination_extra_search" model="ir.ui.view">
        <field name="name">res_partner_destination</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="account_trip.view_res_partner_destination_search" />
        <field name="arch" type="xml">
           <field name="tour1_id" position="after">
               <field name="trip_supplier_facility_code" />                   
               <field name="trip_supplier_destination_code" />               
           </field>
        </field>
    </record>       
    <record model="ir.ui.view" id="view_res_partner_destination_extra_form">
        <field name="name">res.partner.form</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="account_trip.view_res_partner_destination_form" />
        <field name="arch" type="xml">
            <field name="tour2_id" position="after">
               <field name="trip_supplier_facility_code" />                   
               <field name="trip_supplier_destination_code" />                               
            </field>
        </field>
    </record>

    <!-- edi.company -->
    <record model="ir.ui.view" id="edi_company_trip_parameter_form_view">
        <field name="name">Trip company</field>
        <field name="model">edi.company</field>
        <field name="arch" type="xml">
            <form string="EDI Company" version="7.0">                
                <group colspan="4" col="6">
                    <field name="import" />
                    <field name="name" />
                    <newline />
                    
                    <field name="partner_id" />
                    <field name="type_importation_id" />
                    <newline />

		            <field name="trip_import_folder" />
		            <field name="trip_todo_file" />
		            <field name="trip_delete_folder" />
		        </group>
            </form>
        </field>
    </record>

    <record model="ir.ui.view" id="edi_company_trip_parameter_tree_view">
        <field name="name">Trip company</field>
        <field name="model">edi.company</field>
        <field name="arch" type="xml">
            <tree string="EDI Company">
                <field name="import" />
                <field name="name" />
                <field name="type_importation_id" />
                <field name="partner_id" />
	            <field name="trip_import_folder" />
	            <field name="trip_todo_file" />
	            <field name="trip_delete_folder" />
            </tree>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_edi_company_trip_parameter">
        <field name="name">EDI company</field>
        <field name="res_model">edi.company</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="view_id" ref="edi_company_trip_parameter_tree_view"/>
    </record>
    
       <!-- trip.edi.line-->
       <record id="trip_edi_line_search_view" model="ir.ui.view">
            <field name="name">EDI line</field>
            <field name="model">trip.edi.line</field>
            <field name="arch" type="xml">
                <search string="File EDI">
                   <field name="company_id" />
                   <field name="date" />
                   <field name="name" />
                   <field name="number" />
                   <field name="type" />
                   <field name="deadline" />
                   <field name="customer" />
                   <field name="destination" />
                   <field name="destination_id" />
                   <field name="tour1_id" />
                   <field name="tour2_id" />
                   <field name="tour1_id" string="All tour" filter_domain="['|',('tour1_id','=',self),('tour2_id','=',self)]" />
                                      
                   <separator/>
                   <filter name="type_create" string="Create" domain="[('type','=','create')]"/>
                   <filter name="type_force" string="Force" domain="[('type','=','force')]"/>
                   <filter name="type_importing" string="Importing" domain="[('type','=','importing')]"/>
                   <filter name="type_deleting" string="To delete" domain="[('type','=','deleting')]"/>
                   <filter name="type_delete" string="Delete" domain="[('type','=','delete')]"/>
                   <filter name="type_anomaly" string="Anomaly" domain="[('type','=','anomaly')]"/>
                   <separator/>

                   <filter name="priority_high" string="Urgent" domain="[('priority','=','high')]"/>
                   <separator/>
                   <filter name="recursion_test" string="Recursion" domain="[('recursion','>',1)]"/>                   
                   <filter name="destination_test" string="Destination missing" domain="[('type','=','create'),('destination_id','=',False)]"/>                   
                   <filter name="trip_test" string="Trip not present" domain="[('type','=','create'),('tour1_id','=',False),('tour2_id','=',False)]"/>                   

                   <separator/>
                    <group expand="1" string="Group By...">
                        <filter name="group_date" string="Date" domain="[]" context="{'group_by':'date'}"/>
                        <filter name="group_deadline" string="Deadline" domain="[]" context="{'group_by':'deadline'}"/>
                        <filter name="group_number" string="Number" domain="[]" context="{'group_by':'number'}"/>
                        <filter name="group_type" string="Type" domain="[]" context="{'group_by':'type'}"/>
                        <filter name="group_priority" string="Priority" domain="[]" context="{'group_by':'priority'}"/>
                        <filter name="group_customer" string="Customer" domain="[]" context="{'group_by':'customer'}"/>
                        <filter name="group_destination" string="Customer destination" domain="[]" context="{'group_by':'destination'}"/>
                        <filter name="group_destination_id" string="Destination" domain="[]" context="{'group_by':'destination_id'}"/>
                        <filter name="group_company_id" string="Company" domain="[]" context="{'group_by':'company_id'}"/>
                        <filter name="group_tour1_id" string="Trip 1" domain="[]" context="{'group_by':'tour1_id'}"/>
                        <filter name="group_tour2_id" string="Trip 2" domain="[]" context="{'group_by':'tour2_id'}"/>
                    </group>                   
                </search>
            </field>
       </record>         

       <record id="trip_edi_line_tree_view" model="ir.ui.view">
            <field name="name">EDI line</field>
            <field name="model">trip.edi.line</field>
            <field name="arch" type="xml">
                <tree string="File EDI" colors="red:type=='delete';blue:type=='deleting';green:type=='forced';brown:type=='create' and destination_id == False">
                   <field name="company_id" />
                   <field name="timestamp" />
                   <field name="date" />
                   <field name="number" />
                   <field name="deadline" />
                   <field name="recursion" />
                   <field name="customer" />
                   <field name="destination" />
                   <field name="destination_id" />
                   <field name="tour1_id" />
                   <field name="tour2_id" />
                   <field name="type" />
                   <field name="priority" invisible="1"/>
                   <button name="action_null" string="Urgent" type="object" icon="gtk-about" attrs="{'invisible': [('priority','!=','high')]}"/>
                   <field name="name" />                   
                   <button name="delete_order" type="object" string="Delete order" icon="gtk-delete" invisible="context.get('hide_delete',True)"/>
                   <button name="force_import" type="object" string="Force import order" icon="gtk-refresh" attrs="{'invisible':['|',('recursion','>',1),('type','!=','create')]}" />
                   <button name="unforce_import" type="object" string="Unforce import order" icon="gtk-undo" attrs="{'invisible':[('type','!=','forced')]}" />
                </tree>
            </field>
       </record>         

       <record id="trip_edi_line_form_view" model="ir.ui.view">
            <field name="name">EDI line</field>
{'fraction_non_alphanumeric': 0.17379015977389398, 'fraction_numerical': 0.0031147257310953453, 'mean_word_length': 1.9546693933197001, 'pattern_counts': {'":': 0, '<': 325, '<?xml version=': 2, '>': 329, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1527923', 'n_tokens_mistral': 4955, 'n_tokens_neox': 4619, 'n_words': 757}