| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="crm_case_form_view_oppor" model="ir.ui.view"> |
| 5 |
<field name="name">crm.lead.oppor.inherited.crm</field> |
| 6 |
<field name="model">crm.lead</field> |
| 7 |
<field name="inherit_id" ref="crm.crm_lead_view_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//button[@name='action_set_won_rainbowman']" position="before"> |
| 10 |
<button string="New Quotation" name="action_sale_quotations_new" type="object" class="oe_highlight" data-hotkey="q" |
| 11 |
title="Create new quotation" |
| 12 |
invisible="type == 'lead' or probability == 0 and not active"/> |
| 13 |
</xpath> |
| 14 |
<button name="action_set_won_rainbowman" position="attributes"> |
| 15 |
<attribute name="class" remove="oe_highlight"/> |
| 16 |
</button> |
| 17 |
<button name="action_schedule_meeting" position="after"> |
| 18 |
<button class="oe_stat_button" type="object" |
| 19 |
name="action_view_sale_quotation" icon="fa-pencil-square-o" invisible="type == 'lead'"> |
| 20 |
<field name="quotation_count" widget="statinfo" string="Quotations"/> |
| 21 |
</button> |
| 22 |
<button class="oe_stat_button" type="object" invisible="sale_order_count == 0 or type == 'lead'" |
| 23 |
name="action_view_sale_order" icon="fa-usd"> |
| 24 |
<div class="o_field_widget o_stat_info"> |
| 25 |
<span class="o_stat_value"><field name="sale_amount_total" widget="monetary" options="{'currency_field': 'company_currency'}"/></span> |
| 26 |
<span class="o_stat_text"> Orders</span> |
| 27 |
<field name="sale_order_count" invisible="1"/> |
| 28 |
</div> |
| 29 |
</button> |
| 30 |
</button> |
| 31 |
</field> |
| 32 |
</record> |
| 33 |
|
| 34 |
|
| 35 |
<record id="crm.crm_lead_opportunities" model="ir.actions.act_window"> |
| 36 |
<field name="context">{'default_type': 'opportunity', 'default_user_id': uid}</field> |
| 37 |
</record> |
| 38 |
|
| 39 |
<record id="sales_team.mail_activity_type_action_config_sales" model="ir.actions.act_window"> |
| 40 |
<field name="domain">['|', ('res_model', '=', False), ('res_model', 'in', ['crm.lead', 'sale.order', 'res.partner', 'product.template', 'product.product'])]</field> |
| 41 |
</record> |
| 42 |
|
| 43 |
</odoo> |