<commit_before><?xml version="1.0"?>
<openerp>
    <data>

        <!-- open meetings related to given partner -->
        <record id="calendar_event_partner" model="ir.actions.act_window">
            <field name="name">Meetings</field>
            <field name="src_model">res.partner</field>
            <field name="res_model">calendar.event</field>
            <field name="view_mode">calendar,tree,form</field>
            <field name="context">{'default_partner_ids': [active_id], 'search_default_partner_ids': [active_id]}</field>
        </record>

        <!-- open opportunities related to given partner -->
        <record model="ir.actions.act_window" id="relate_partner_opportunities">
            <field name="name">Opportunities</field>
            <field name="res_model">crm.lead</field>
            <field name="view_mode">kanban,tree,form,graph,calendar</field>
            <field name="domain">[('type','=','opportunity')]</field>
            <field name="context">{
                'search_default_partner_id': active_id,
                'default_type': 'opportunity'
            }</field>
            <field name="view_id" eval="False"/>
            <field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create an opportunity related to this customer.
              </p><p>
                Use opportunities to keep track of your sales pipeline, follow
                up potential sales and better forecast your future revenues.
              </p><p>
                You will be able to plan meetings and log activities from
                opportunities, convert them into quotations, attach related
                documents, track all discussions, and much more.
              </p>
            </field>
        </record>
        <record model="ir.actions.act_window.view" id="relate_partner_opportunities_kanban">
            <field name="sequence" eval="0"/>
            <field name="view_mode">kanban</field>
            <field name="view_id" ref="crm_case_kanban_view_leads"/>
            <field name="act_window_id" ref="relate_partner_opportunities"/>
        </record>
        <record model="ir.actions.act_window.view" id="relate_partner_opportunities_tree">
            <field name="sequence" eval="1"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="crm_case_tree_view_oppor"/>
            <field name="act_window_id" ref="relate_partner_opportunities"/>
        </record>
        <record model="ir.actions.act_window.view" id="relate_partner_opportunities_form">
            <field name="sequence" eval="2"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_case_form_view_oppor"/>
            <field name="act_window_id" ref="relate_partner_opportunities"/>
        </record>

        <!-- Partner kanban view inherte -->
        <record model="ir.ui.view" id="crm_lead_partner_kanban_view">
            <field name="name">res.partner.kanban.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.res_partner_kanban_view"/>
            <field name="priority" eval="10"/>
            <field name="arch" type="xml">
                <field name="mobile" position="after">
                    <field name="opportunity_count"/>
                    <field name="meeting_count"/>
                </field>
                <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
                    <span class="badge" t-if="record.opportunity_count.value>0"><i class="fa fa-fw fa-star"/><t t-esc="record.opportunity_count.value"/></span>
                    <span class="badge" t-if="record.meeting_count.value>0"><i class="fa fa-fw fa-calendar"/><t t-esc="record.meeting_count.value"/></span>
                </xpath>
            </field>
        </record>
        <!-- tree view of crm.activity.report -->
        <record id="crm_activity_report_view_tree" model="ir.ui.view">
            <field name="name">crm.activity.report.tree</field>
            <field name="model">crm.activity.report</field>
            <field name="arch" type="xml">
                <tree delete="false">
                    <field name="author_id"/>
                    <field name="subtype_id"/>
                    <field name="subject"/>
                    <field name="date"/>
                </tree>
            </field>
        </record>

        <!-- open activities related to given partner -->
        <record id="crm_activity_report_action_tree" model="ir.actions.act_window">
            <field name="name">Activities</field>
            <field name="res_model">crm.activity.report</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field><commit_msg>[IMP] crm: No create on crm.activity.report<commit_after><?xml version="1.0"?>
<openerp>
    <data>

        <!-- open meetings related to given partner -->
        <record id="calendar_event_partner" model="ir.actions.act_window">
            <field name="name">Meetings</field>
            <field name="src_model">res.partner</field>
            <field name="res_model">calendar.event</field>
            <field name="view_mode">calendar,tree,form</field>
            <field name="context">{'default_partner_ids': [active_id], 'search_default_partner_ids': [active_id]}</field>
        </record>

        <!-- open opportunities related to given partner -->
        <record model="ir.actions.act_window" id="relate_partner_opportunities">
            <field name="name">Opportunities</field>
            <field name="res_model">crm.lead</field>
            <field name="view_mode">kanban,tree,form,graph,calendar</field>
            <field name="domain">[('type','=','opportunity')]</field>
            <field name="context">{
                'search_default_partner_id': active_id,
                'default_type': 'opportunity'
            }</field>
            <field name="view_id" eval="False"/>
            <field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create an opportunity related to this customer.
              </p><p>
                Use opportunities to keep track of your sales pipeline, follow
                up potential sales and better forecast your future revenues.
              </p><p>
                You will be able to plan meetings and log activities from
                opportunities, convert them into quotations, attach related
                documents, track all discussions, and much more.
              </p>
            </field>
        </record>
        <record model="ir.actions.act_window.view" id="relate_partner_opportunities_kanban">
            <field name="sequence" eval="0"/>
            <field name="view_mode">kanban</field>
            <field name="view_id" ref="crm_case_kanban_view_leads"/>
            <field name="act_window_id" ref="relate_partner_opportunities"/>
        </record>
        <record model="ir.actions.act_window.view" id="relate_partner_opportunities_tree">
            <field name="sequence" eval="1"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="crm_case_tree_view_oppor"/>
            <field name="act_window_id" ref="relate_partner_opportunities"/>
        </record>
        <record model="ir.actions.act_window.view" id="relate_partner_opportunities_form">
            <field name="sequence" eval="2"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_case_form_view_oppor"/>
            <field name="act_window_id" ref="relate_partner_opportunities"/>
        </record>

        <!-- Partner kanban view inherte -->
        <record model="ir.ui.view" id="crm_lead_partner_kanban_view">
            <field name="name">res.partner.kanban.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.res_partner_kanban_view"/>
            <field name="priority" eval="10"/>
            <field name="arch" type="xml">
                <field name="mobile" position="after">
                    <field name="opportunity_count"/>
                    <field name="meeting_count"/>
                </field>
                <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
                    <span class="badge" t-if="record.opportunity_count.value>0"><i class="fa fa-fw fa-star"/><t t-esc="record.opportunity_count.value"/></span>
                    <span class="badge" t-if="record.meeting_count.value>0"><i class="fa fa-fw fa-calendar"/><t t-esc="record.meeting_count.value"/></span>
                </xpath>
            </field>
        </record>
        <!-- tree view of crm.activity.report -->
        <record id="crm_activity_report_view_tree" model="ir.ui.view">
            <field name="name">crm.activity.report.tree</field>
            <field name="model">crm.activity.report</field>
            <field name="arch" type="xml">
                <tree delete="false" create="false">
                    <field name="author_id"/>
                    <field name="subtype_id"/>
                    <field name="subject"/>
                    <field name="date"/>
                </tree>
            </field>
        </record>

        <!-- open activities related to given partner -->
        <record id="crm_activity_report_action_tree" model="ir.actions.act_window">
            <field name="name">Activities</field>
            <field name="res_model">crm.activity.report</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
{'fraction_non_alphanumeric': 0.14174502072591244, 'fraction_numerical': 0.0018198362147406734, 'mean_word_length': 2.27224611313265, 'pattern_counts': {'":': 0, '<': 223, '<?xml version=': 2, '>': 227, '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': '6488133', 'n_tokens_mistral': 2846, 'n_tokens_neox': 2774, 'n_words': 519}