1234567891011121314151617181920212223242526272829303132 |
- <?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>
- <field name="lost_reason_id" options="{'no_create_edit': True}" />
- </group>
- <field name="lost_feedback" placeholder="What went wrong ?"/>
- <footer>
- <button name="action_lost_reason_apply" string="Submit" type="object" class="btn-primary" data-hotkey="q"/>
- <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
- </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>
- <field name="context">{
- 'dialog_size' : 'medium',
- }</field>
- </record>
- </odoo>
|