crm_lead_lost_views.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0"?>
  2. <odoo>
  3. <record id="crm_lead_lost_view_form" model="ir.ui.view">
  4. <field name="name">crm.lead.lost.form</field>
  5. <field name="model">crm.lead.lost</field>
  6. <field name="arch" type="xml">
  7. <form string="Lost Reason">
  8. <group>
  9. <field name="lost_reason_id" options="{'no_create_edit': True}" />
  10. </group>
  11. <field name="lost_feedback" placeholder="What went wrong ?"/>
  12. <footer>
  13. <button name="action_lost_reason_apply" string="Submit" type="object" class="btn-primary" data-hotkey="q"/>
  14. <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
  15. </footer>
  16. </form>
  17. </field>
  18. </record>
  19. <record id="crm_lead_lost_action" model="ir.actions.act_window">
  20. <field name="name">Lost Reason</field>
  21. <field name="type">ir.actions.act_window</field>
  22. <field name="res_model">crm.lead.lost</field>
  23. <field name="view_mode">form</field>
  24. <field name="view_id" ref="crm_lead_lost_view_form"/>
  25. <field name="target">new</field>
  26. <field name="context">{
  27. 'dialog_size' : 'medium',
  28. }</field>
  29. </record>
  30. </odoo>