summaryrefslogtreecommitdiff
path: root/addons/crm/wizard/crm_lead_lost_views.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/crm/wizard/crm_lead_lost_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/crm/wizard/crm_lead_lost_views.xml')
-rw-r--r--addons/crm/wizard/crm_lead_lost_views.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/addons/crm/wizard/crm_lead_lost_views.xml b/addons/crm/wizard/crm_lead_lost_views.xml
new file mode 100644
index 00000000..2128db8a
--- /dev/null
+++ b/addons/crm/wizard/crm_lead_lost_views.xml
@@ -0,0 +1,27 @@
+<?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="lost_reason_id" options="{'no_create_edit': True}" />
+ </group>
+ <footer>
+ <button name="action_lost_reason_apply" string="Submit" type="object" class="btn-primary"/>
+ <button string="Cancel" class="btn-secondary" 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>