<commit_before><?xml version="1.0"?>
<openerp>
    <data>
        <!--res.partner-->
        <record model="ir.ui.view" id="view_res_partner_log_form">
            <field name="name">res.partner.form</field>
            <field name="model">res.partner</field>
            <field name="priority" eval="40" />
            <field name="arch" type="xml">
                <form string="String" version="7.0">        
                    <sheet>
                        <field name="image" widget="image" class="oe_left oe_avatar" options="{'preview_image': 'image_medium', 'size': [90, 90]}"/>
		                <div class="oe_title oe_left">
			                <div class="oe_edit_only">
				                <label for="name"/>
				                (                                            
				                <field name="is_company" on_change="onchange_type(is_company)" class="oe_inline"/>
				                <label for="is_company" string="Is company?"/>
				                )                                        
			                </div>
			                <h1>
   				                <field name="name" default_focus="1" placeholder="Nome" required="1" />
			                </h1>
		                </div>
                        <group col="4" colspan="4">                        
                            <field name="log_code" />
                            <notebook colspan="4">
                                <page string="Activity">
                                    <group col="4" colspan="4">                        
                                        <field name="log_activity_ids" nolabel="1" colspan="4" context="{'embedded_partner': True}"/>
                                    </group>    
                                </page>
                                <page string="User">
                                    <group col="4" colspan="4">                        
                                        <field name="log_users_ids" nolabel="1" colspan="4" />
                                    </group>    
                                </page>
                            </notebook>                                 
                        </group>
                    </sheet>        
                </form>
            </field>
        </record>
        <record model="ir.actions.act_window" id="action_res_partner_log">
            <field name="name">Partner</field>
            <field name="res_model">res.partner</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="context">{'default_is_company': True, 'form_view_ref': 'activity_log_base.view_res_partner_log_form'}</field>
            <field name="domain">[('is_company', '=', True)]</field>
        </record>
            
        <!--log.activity.history-->
        <record model="ir.ui.view" id="view_log_activity_history_search">
            <field name="name">log.activity.history.search</field>
            <field name="model">log.activity.history</field>
            <field name="arch" type="xml">
                <search string="History" version="7.0">        
                    <field name="mode" />
                    
                    <field name="activity_id" filter_domain="[('activity_id','=',self)]"/>

                    <filter name="mode_cron" string="Cron mode" domain="[('mode','=','cron')]"/>
                    <filter name="mode_config" string="Config mode" domain="[('mode','=','config')]"/>

                    <group expand="0" string="Group By...">
                        <filter name="group_activity" string="Activity" context="{'group_by': 'activity_id'}"/>
                        <filter string="Mode" context="{'group_by': 'mode'}" /><commit_msg>add ad hoc tree partner view<commit_after><?xml version="1.0"?>
<openerp>
    <data>
        <!--res.partner-->
        <record model="ir.ui.view" id="view_res_partner_lgo_code_tree">
            <field name="name">res.partner.tree</field>
            <field name="model">res.partner</field>
            <field name="priority" eval="40" />
            <field name="arch" type="xml">
                <tree string="Contacts">
	                <field name="name" />
	                <field name="function" invisible="1" />
	                <field name="phone" />
	                <field name="email" />
	                <field name="log_code" />
	                <field name="user_id" invisible="1" />
	                <field name="is_company" invisible="1" />
	                <field name="country" invisible="1" />
	                <field name="country_id" invisible="1" />
	                <field name="parent_id" invisible="1" />
                </tree>
            </field>
        </record>
        <record model="ir.ui.view" id="view_res_partner_log_form">
            <field name="name">res.partner.form</field>
            <field name="model">res.partner</field>
            <field name="priority" eval="40" />
            <field name="arch" type="xml">
                <form string="String" version="7.0">        
                    <sheet>
                        <field name="image" widget="image" class="oe_left oe_avatar" options="{'preview_image': 'image_medium', 'size': [90, 90]}"/>
		                <div class="oe_title oe_left">
			                <div class="oe_edit_only">
				                <label for="name"/>
				                (                                            
				                <field name="is_company" on_change="onchange_type(is_company)" class="oe_inline"/>
				                <label for="is_company" string="Is company?"/>
				                )                                        
			                </div>
			                <h1>
   				                <field name="name" default_focus="1" placeholder="Nome" required="1" />
			                </h1>
		                </div>
                        <group col="4" colspan="4">                        
                            <field name="log_code" />
                            <notebook colspan="4">
                                <page string="Activity">
                                    <group col="4" colspan="4">                        
                                        <field name="log_activity_ids" nolabel="1" colspan="4" context="{'embedded_partner': True}"/>
                                    </group>    
                                </page>
                                <page string="User">
                                    <group col="4" colspan="4">                        
                                        <field name="log_users_ids" nolabel="1" colspan="4" />
                                    </group>    
                                </page>
                            </notebook>                                 
                        </group>
                    </sheet>        
                </form>
            </field>
        </record>
        <record model="ir.actions.act_window" id="action_res_partner_log">
            <field name="name">Partner</field>
            <field name="res_model">res.partner</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_res_partner_lgo_code_tree"/>
            <field name="view_mode">tree,form</field>
            <field name="context">{'default_is_company': True, 'form_view_ref': 'activity_log_base.view_res_partner_log_form'}</field>
            <field name="domain">[('is_company', '=', True)]</field>
        </record>

        <!--log.activity.history-->
        <record model="ir.ui.view" id="view_log_activity_history_search">
            <field name="name">log.activity.history.search</field>
            <field name="model">log.activity.history</field>
            <field name="arch" type="xml">
                <search string="History" version="7.0">        
                    <field name="mode" />
                    
                    <field name="activity_id" filter_domain="[('activity_id','=',self)]"/>

                    <filter name="mode_cron" string="Cron mode" domain="[('mode','=','cron')]"/>
                    <filter name="mode_config" string="Config mode" domain="[('mode','=','config')]"/>

                    <group expand="0" string="Group By...">
                        <filter name="group_activity" string="Activity" context="{'group_by': 'activity_id'}"/>
                        <filter string="Mode" context="{'group_by': 'mode'}" />
{'fraction_non_alphanumeric': 0.14626409774436092, 'fraction_numerical': 0.007518796992481203, 'mean_word_length': 1.2628920786815523, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 2, '>': 169, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2958292', 'n_tokens_mistral': 2310, 'n_tokens_neox': 2099, 'n_words': 362}