- </div>
- <div class="oe_clear"/>
- </div>
- <sheet layout="auto">
- <group colspan="4" col="7">
- <field name="name" required="1" string="Subject"/>
- <field name="priority"/>
- <field name="categ_id"
- widget="selection"
- domain="[('object_id.model','=','crm.lead')]"/>
- <newline />
- <field name="user_id" />
- <field name="section_id" widget="selection" />
- <field name="type" invisible="1"/>
- </group>
- <notebook colspan="4">
- <page string="Lead">
- <group colspan="4" col="2">
- <field name="partner_name" string="Company Name" />
- </group>
- <group colspan="2" col="4">
- <separator string="Contact" colspan="4" col="4"/>
- <field name="contact_name" colspan="4"/>
- <newline/>
- <field domain="[('domain', '=', 'contact')]" name="title" widget="selection"/>
- <field name="function" />
- <field name="street" colspan="4"/>
- <field name="street2" colspan="4"/>
- <field name="zip"/>
- <field name="city"/>
- <field name="country_id"/>
- <field name="state_id"/>
- </group>
- <group colspan="2" col="3">
- <separator string="Communication" colspan="4" col="3"/>
- <field name="email_from" widget="email"/>
- <button string="Mail"
- name="%(mail.action_email_compose_message_wizard)d"
- icon="terp-mail-message-new" type="action" colspan="1"/>
- <newline/>
- <field name="phone"/>
- <newline/>
- <field name="fax"/>
- <newline/>
- <field name="mobile"/>
- <newline/>
- <separator string="Links" colspan="4" col="3"/>
- <field name="partner_id" string="Customer"/>
- <button
- name="%(action_crm_lead2partner)d"
- icon="terp-partner" type="action"
- string="Create"
- attrs="{'invisible':[('partner_id','!=',False)]}"/>
- </group>
- <separator colspan="4" string="Notes"/>
- <field name="description" nolabel="1" colspan="4"/>
- </page>
- <page string="Extra Info">
- <group colspan="2" col="2">
- <separator string="Categorization" colspan="2" col="2"/>
- <field name="company_id"
- groups="base.group_multi_company"
- widget="selection" colspan="2" />
- <field name="type_id" select="1" widget="selection"/>
- <field name="channel_id" select="1" widget="selection"/>
- <field name="referred"/>
- <field name="state" groups="base.group_no_one"/>
- </group>
- <group colspan="2" col="2">
- <separator string="Mailings" colspan="2" col="2"/>
- <field name="opt_in" on_change="on_change_opt_in(opt_in)"/>
- <field name="opt_out" on_change="on_change_opt_out(opt_out)"/>
- </group>
- <group colspan="2" col="2" groups="base.group_no_one">
- <separator string="Statistics" colspan="2" col="2"/>
- <field name="day_open"/>
- <field name="day_close"/>
+ </header>
+ <sheet>
+ <label for="name" class="oe_form_readonly_hidden" string="Lead Description"/>
+ <h1><field name="name" placeholder="Describe the lead..."/></h1>
+ <group>
+ <group>
+ <field name="user_id" />
+ <field name="section_id" widget="selection" />
+ <field name="type" invisible="1"/>
+ </group>
+ <group>
+ <field name="priority"/>
+ <field name="categ_id"
+ widget="selection"
+ domain="[('object_id.model','=','crm.lead')]"/>
+ </group>
+ <group>
+ <field name="partner_name" string="Company Name"/>
+ <field name="partner_id" string="Customer"/>
+ <label for="street" string="Address"/>
+ <div>
+ <field name="street" placeholder="Street..."/>
+ <field name="street2"/>
+ <div>
+ <field name="zip" class="oe_form_inline" placeholder="ZIP"/>
+ <field name="city" class="oe_form_inline" placeholder="City"/>
+ </div>
+ <field name="state_id" placeholder="State"/>
+ <field name="country_id" placeholder="Country"/>
+ </div>
+ </group>
+ <group>
+ <field name="contact_name" />
+ <field name="email_from" widget="email"/>
+ <field name="function" />
+ <field domain="[('domain', '=', 'contact')]" name="title"/>
+ <field name="phone"/>
+ <field name="mobile"/>
+ <field name="fax"/>
+ <!--
+ This should be integrated in Open Chatter
+ <button string="Mail"
+ name="%(mail.action_email_compose_message_wizard)d"
+ icon="terp-mail-message-new" type="action" colspan="1"/>
+ -->
+ </group>