Among various small fixes, some changes : - correct computation of default sales team, located in sales_team with a small code cleaning. Rely on this method everywhere it is necessary. - add a configuration option to enable the use of leads in sales team; otherwise it is hidden - better display of alias in empty list help; - add a menu for next activities, that are the opportunities with an action whose deadline is near assigned to the current user; - automatic update of aliases configuration on sales team, based on whether they use leads and/or opportunities; - add a wizard to log the lost reasong when deactivating a lead or an opportunity
30 lines
1.2 KiB
XML
30 lines
1.2 KiB
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<record id="crm_lead_lost_view_form" model="ir.ui.view">
|
|
<field name="name">crm.lead.lost.form</field>
|
|
<field name="model">crm.lead.lost</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Lost Reason">
|
|
<group class="oe_title">
|
|
<field name="lead_id" invisible="1"/>
|
|
<field name="lost_reason_id"/>
|
|
</group>
|
|
<footer>
|
|
<button name="action_lost_reason_apply" string="Submit" type="object" class="oe_highlight"/>
|
|
or
|
|
<button string="Cancel" class="oe_link" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="crm_lead_lost_action" model="ir.actions.act_window">
|
|
<field name="name">Lost Reason</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">crm.lead.lost</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="crm_lead_lost_view_form"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
</odoo>
|