You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
5.8 KiB
116 lines
5.8 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<openerp>
|
|
<data>
|
|
<record id="crm_case_form_view_lead_updated" model="ir.ui.view">
|
|
<field name="name">Leads updated</field>
|
|
<field name="model">crm.lead</field>
|
|
<field name="inherit_id" ref="crm.crm_case_form_view_leads" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='partner_id']" position="after">
|
|
<field name="stage_previous" invisible="1" />
|
|
<field name="stage_next" invisible="1" />
|
|
<field name="stage_type" invisible="1" />
|
|
</xpath>
|
|
<xpath expr="//field[@name='user_id']" position="attributes">
|
|
<attribute name="required">1</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//form/header" position="inside">
|
|
<button name="approve_oppor" string="Approve" groups="sales_team.group_sale_manager,sales_team.group_sale_salesman_all_leads"
|
|
type="object" class="oe_highlight o_wow" attrs="{'invisible': [('stage_type','!=','approval')]}"/>
|
|
<button name="decline_oppor" string="Decline" groups="sales_team.group_sale_manager,sales_team.group_sale_salesman_all_leads"
|
|
type="object" class="oe_highlight o_wow" attrs="{'invisible': [('stage_type','!=','approval')]}"/>
|
|
|
|
</xpath>
|
|
<xpath expr="//form/header/button[1]" position="attributes">
|
|
<attribute name="attrs">{'invisible': [('stage_type','=','approval')]}
|
|
</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//group[1]/group[2]" position="before">
|
|
<group>
|
|
<field name="previous" />
|
|
<field name="next_stage"/>
|
|
</group>
|
|
</xpath>
|
|
|
|
</field>
|
|
</record>
|
|
|
|
<record id="crm_case_form_view_opport_updated" model="ir.ui.view">
|
|
<field name="name">Opportunity updated</field>
|
|
<field name="model">crm.lead</field>
|
|
<field name="inherit_id" ref="crm.crm_case_form_view_oppor" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='partner_id']" position="after">
|
|
<field name="stage_previous" invisible="1" />
|
|
<field name="stage_next" invisible="1" />
|
|
<field name="stage_type" invisible="1" />
|
|
</xpath>
|
|
<xpath expr="//field[@name='user_id']" position="attributes">
|
|
<attribute name="required">1</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//form/header" position="inside">
|
|
<button name="approve_oppor" string="Approve" groups="sales_team.group_sale_manager,sales_team.group_sale_salesman_all_leads"
|
|
type="object" class="oe_highlight o_wow" attrs="{'invisible': [('stage_type','!=','approval')]}"/>
|
|
<button name="decline_oppor" string="Decline" groups="sales_team.group_sale_manager,sales_team.group_sale_salesman_all_leads"
|
|
type="object" class="oe_highlight o_wow" attrs="{'invisible': [('stage_type','!=','approval')]}" />
|
|
|
|
</xpath>
|
|
<xpath expr="//form/header/button[1]" position="attributes">
|
|
<attribute name="attrs">{'invisible': [('stage_type','=','approval')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//form/header/button[2]" position="attributes">
|
|
<attribute name="attrs">{'invisible': [('stage_type','=','approval')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//form/header/button[3]" position="attributes">
|
|
<attribute name="attrs">{'invisible': [('stage_type','=','approval')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//form/header/field[@name='stage_id']" position="attributes">
|
|
<attribute name="attrs">{'invisible': [('stage_type','=','approval')]}</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//group[1]/group[2]" position="before">
|
|
<group>
|
|
<field name="previous" />
|
|
<field name="next_stage"/>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="crm_case_stage_updated" model="ir.ui.view">
|
|
<field name="name">Stages Updated</field>
|
|
<field name="model">crm.stage</field>
|
|
<field name="inherit_id" ref="crm.crm_stage_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='on_change']" position="after">
|
|
<field name="stage_order" />
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_waiting_approval_window" model="ir.actions.act_window">
|
|
<field name="name">Waiting</field>
|
|
<field name="res_model">crm.lead</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
|
|
<record id="action_waiting_approval" model="ir.actions.server">
|
|
<field name="name">Waiting</field>
|
|
<field name="type">ir.actions.server</field>
|
|
<field name="res_model">crm.lead</field>
|
|
<field name="model_id" ref="model_crm_lead"/>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="state">code</field>
|
|
<field name="code">action = env['crm.lead'].get_approvals(context=context)</field>
|
|
</record>
|
|
|
|
<menuitem name="Waiting for approval" id="waiting_approval" action="action_waiting_approval" parent="sales_team.menu_sales" />
|
|
|
|
</data>
|
|
</openerp>
|