116 lines
5.1 KiB
XML
116 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- Fundraising by user and section Tree View-->
|
|
|
|
<record id="view_report_crm_fundraising_tree" model="ir.ui.view">
|
|
<field name="name">crm.fundraising.report.tree</field>
|
|
<field name="model">crm.fundraising.report</field>
|
|
<field name="type">tree</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Fundraising">
|
|
<field name="name" invisible="1"/>
|
|
<field name="month" invisible="1"/>
|
|
<field name="section_id" invisible="1"/>
|
|
<field name="user_id" invisible="1"/>
|
|
<field name="company_id" invisible="1"/>
|
|
<field name="partner_id" invisible="1"/>
|
|
<field name="nbr" string='#Fundraising' sum="#Fundraising"/>
|
|
<field name="amount_revenue" sum='Est.Revenue'/>
|
|
<field name="probability" avg='Avg. Probability' widget="progressbar"/>
|
|
<field name="amount_revenue_prob" sum='Est. Rev*Prob.'/>
|
|
<field name="delay_close" avg='Avg Closing Delay'/>
|
|
<field name="state" invisible="1"/>
|
|
<field name="categ_id" invisible="1"/>
|
|
<field name="day" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
|
|
<!-- Fundraising by user and section Form View-->
|
|
|
|
</record>
|
|
<record id="view_report_crm_fundraising_form" model="ir.ui.view">
|
|
<field name="name">crm.fundraising.report.form</field>
|
|
<field name="model">crm.fundraising.report</field>
|
|
<field name="inherit_id" ref="view_crm_case_form"/>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<field name="nbr" position="after">
|
|
<field name="delay_close"/>
|
|
<field name="amount_revenue"/>
|
|
<field name="amount_revenue_prob"/>
|
|
<field name="probability"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Fundraising by user and section Graph View-->
|
|
|
|
<record id="view_report_crm_fundraising_graph" model="ir.ui.view">
|
|
<field name="name">crm.fundraising.report.graph</field>
|
|
<field name="model">crm.fundraising.report</field>
|
|
<field name="type">graph</field>
|
|
<field name="arch" type="xml">
|
|
<graph orientation="horizontal" string="Fundraising" type="bar">
|
|
<field name="state"/>
|
|
<field name="nbr" operator="+"/>
|
|
<field group="True" name="user_id"/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Fundraising by user and section Search View-->
|
|
|
|
<record id="view_report_crm_fundraising_filter" model="ir.ui.view">
|
|
<field name="name">crm.fundraising.report.select</field>
|
|
<field name="model">crm.fundraising.report</field>
|
|
<field name="inherit_id" ref="view_crm_case_filter"/>
|
|
<field name="type">search</field>
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
<xpath expr='//search[@string="Search"]/group[@string="Extended options..."]/filter[@string="Cancel"]' position='after'>
|
|
<group>
|
|
<separator orientation="vertical"/>
|
|
<field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.fundraising')]"/>
|
|
</group>
|
|
</xpath>
|
|
</data>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Fundraising by user and section Action -->
|
|
|
|
<record id="action_report_crm_fundraising" model="ir.actions.act_window">
|
|
<field name="name">Fundraising</field>
|
|
<field name="res_model">crm.fundraising.report</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,graph</field>
|
|
<field name="context">{"search_default_User":1,"search_default_This Month":1,'group_by_no_leaf':1,'group_by':[]}</field>
|
|
<field name="view_id" ref="view_report_crm_fundraising_tree"/>
|
|
<field name="search_view_id" ref="view_report_crm_fundraising_filter"/>
|
|
</record>
|
|
|
|
|
|
<record model="ir.actions.act_window.view" id="action_report_crm_fundrising_tree">
|
|
<field name="sequence" eval="1"/>
|
|
<field name="view_mode">tree</field>
|
|
<field name="view_id" ref="view_report_crm_fundraising_tree"/>
|
|
<field name="act_window_id" ref="action_report_crm_fundraising"/>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window.view" id="action_report_crm_fundrising_graph">
|
|
<field name="sequence" eval="2"/>
|
|
<field name="view_mode">graph</field>
|
|
<field name="view_id" ref="view_report_crm_fundraising_graph"/>
|
|
<field name="act_window_id" ref="action_report_crm_fundraising"/>
|
|
</record>
|
|
|
|
<menuitem name="Fundraising"
|
|
action="action_report_crm_fundraising"
|
|
groups="base.group_extended"
|
|
id="menu_report_crm_fundraising_tree" parent="base.next_id_64" />
|
|
|
|
</data>
|
|
</openerp>
|