| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="crm_quotation_partner_view_form" model="ir.ui.view"> |
| 4 | <field name="name">crm.quotation.partner.view.form</field> |
| 5 | <field name="model">crm.quotation.partner</field> |
| 6 | <field name="arch" type="xml"> |
| 7 | <form string="New Quotation"> |
| 8 | <group> |
| 9 | <group> |
| 10 | <field name="action" widget="radio"/> |
| 11 | <field name="lead_id" invisible="1"/> |
| 12 | </group> |
| 13 | </group> |
| 14 | <group invisible="action != 'exist'" required="action == 'exist'"> |
| 15 | <group> |
| 16 | <field name="partner_id" invisible="action != 'exist'" required="action == 'exist'" |
| 17 | context="{'res_partner_search_mode': 'customer'}" /> |
| 18 | </group> |
| 19 | </group> |
| 20 | <footer> |
| 21 | <button name="action_apply" string="Confirm" type="object" class="btn-primary" data-hotkey="q"/> |
| 22 | <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="x"/> |
| 23 | </footer> |
| 24 | </form> |
| 25 | </field> |
| 26 | </record> |
| 27 | |
| 28 | <record id="crm_quotation_partner_action" model="ir.actions.act_window"> |
| 29 | <field name="name">New Quotation</field> |
| 30 | <field name="res_model">crm.quotation.partner</field> |
| 31 | <field name="view_mode">form</field> |
| 32 | <field name="view_id" ref="crm_quotation_partner_view_form"/> |
| 33 | <field name="target">new</field> |
| 34 | </record> |
| 35 | </odoo> |