2012-05-25 13:30:15 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- wizard form view -->
|
|
|
|
<record id="wizard_contact_form_view" model="ir.ui.view">
|
|
|
|
<field name="name">Wizard form view</field>
|
|
|
|
<field name="model">portal_crm.crm_contact_us</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-29 12:52:09 +00:00
|
|
|
<form string="Contact Us wizard view" version="7.0">
|
|
|
|
<div style="width: 960px; margin: 0 auto;">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td width="80%%">
|
|
|
|
<group>
|
|
|
|
<field name="contact_name" string="Name"/>
|
|
|
|
<field name="name" string="Company"/>
|
|
|
|
<field name="email_from"/>
|
|
|
|
<field name="phone"/>
|
|
|
|
<field name="description" string="Your question"/>
|
|
|
|
<label string=""/>
|
|
|
|
<button string="Submit" name="submit" type="object"/>
|
|
|
|
</group>
|
|
|
|
<field name="employee_ids"/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<field name="company_ids" widget="many2many_kanban">
|
|
|
|
<kanban>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="email"/>
|
|
|
|
<field name="phone"/>
|
|
|
|
<field name="street"/>
|
|
|
|
<field name="street2"/>
|
|
|
|
<field name="zip"/>
|
|
|
|
<field name="city"/>
|
|
|
|
<field name="country_id"/>
|
|
|
|
<field name="state_id"/>
|
|
|
|
<templates>
|
|
|
|
<t t-name="kanban-box">
|
|
|
|
<div style="position: relative">
|
|
|
|
|
|
|
|
<!-- <img t-att-src="kanban_image('res.partner', 'photo', record.id.value)" class="oe_avatar oe_kanban_avatar_toto"/> -->
|
|
|
|
<h4><field name="name"/></h4>
|
|
|
|
<a t-if="record.email.raw_value" title="Mail" t-att-href="'mailto:'+record.email.value" style="text-decoration: none;" >
|
|
|
|
<field name="email"/>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
|
|
|
</field>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2012-05-25 13:30:15 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2012-05-25 17:05:53 +00:00
|
|
|
|
2012-05-25 13:30:15 +00:00
|
|
|
<!-- wizard thanks message (shows after submitting the form) -->
|
|
|
|
<record id="wizard_contact_form_view_thanks" model="ir.ui.view">
|
|
|
|
<field name="name">Wizard thanks message</field>
|
|
|
|
<field name="model">portal_crm.crm_contact_us</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<!-- give it a low priority to ensure this won't be the default view -->
|
|
|
|
<field name="priority">99</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Thank you">
|
|
|
|
<!--
|
|
|
|
make sure there is at least one field in the view,
|
|
|
|
otherwise the orm will try to select all the model's
|
|
|
|
records and this will result in a permission denied error
|
|
|
|
-->
|
|
|
|
<field name="name" invisible="1"/>
|
2012-05-25 15:27:38 +00:00
|
|
|
<label string="Thank you for your interest, we'll respond to your request shortly."/>
|
2012-05-25 13:30:15 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2012-05-25 17:05:53 +00:00
|
|
|
|
2012-05-25 16:16:51 +00:00
|
|
|
<!-- wizard action -->
|
|
|
|
<record id="action_wizard_contact_us" model="ir.actions.act_window">
|
|
|
|
<field name="name">Contact Us</field>
|
|
|
|
<field name="res_model">portal_crm.crm_contact_us</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
</record>
|
2012-05-25 17:05:53 +00:00
|
|
|
|
2012-05-25 16:16:51 +00:00
|
|
|
<!-- attach it to the portal menu -->
|
2012-06-27 15:00:52 +00:00
|
|
|
<menuitem name="Contact" id="portal_company_contact"
|
2012-05-29 10:01:12 +00:00
|
|
|
parent="portal.portal_company" action="action_wizard_contact_us" sequence="30"/>
|
2012-05-25 16:16:51 +00:00
|
|
|
|
2012-05-25 13:30:15 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|