[IMP]crm : lead, oppu. view

bzr revid: hmo@tinyerp.com-20100203135926-c4p57tkrp8qhhwfx
This commit is contained in:
Harry (Open ERP) 2010-02-03 19:29:26 +05:30
parent d60af5a5e9
commit c37f0eda28
3 changed files with 22 additions and 19 deletions

View File

@ -26,22 +26,24 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Leads Form">
<group>
<group colspan="3" col="4">
<group colspan="4" col="4">
<field name="partner_name" string="Lead Name" required="1"/>
<field name="name" string="Lead Subject"/>
<field name="partner_name2" string="Contact Name"/>
<field name="email_from" string="Email"/>
<field name="email_from" string="Email"/>
<newline/>
<group colspan="4" col="5">
<label string="" colspan="2"/>
<button string="Create Opportunity" name="%(wizard_crm_lead_opportunity_set)d" icon="gtk-index" type="action"/>
<button string="Convert to Partner"
icon="terp-partner" name="%(wizard_crm_lead_partner_create)d"
type="action" attrs="{'invisible':[('partner_id','!=',False)]}"
/>
</group>
</group>
<group colspan="1" col="1">
<button string="Create Opportunity" name="%(wizard_crm_lead_opportunity_set)d" icon="gtk-index" type="action"/>
<button string="Convert to Partner"
icon="terp-partner" name="%(wizard_crm_lead_partner_create)d"
type="action" attrs="{'invisible':[('partner_id','!=',False)]}"
/>
</group>
<group colspan="3" col="4">
<group colspan="4" col="4">
<notebook>
<page string="Leads">
<separator colspan="4" string="Communication"/>
@ -105,7 +107,7 @@
</notebook>
</group>
</group>
</form>
</field>

View File

@ -39,21 +39,22 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Opportunities">
<group colspan="3" col="4">
<group colspan="4" col="4">
<field name="name" select="1" string="Opportunity" colspan="4"/>
<field name="planned_revenue" required="1"/>
<field name="planned_cost"/>
<field name="probability"/>
<field name="date_deadline" string="Excepted Close Date" required="1"/>
</group>
<group colspan="1" col="1">
<group colspan="4" col="5">
<label string="" colspan="2"/>
<button string="Schedule Meeting"
name="%(wizard_crm_opportunity_meeting_set)d" icon="gtk-redo" type="action" />
<button string="Schedule Call"
name="%(wizard_crm_opportunity_reschedule_phone_call)d" icon="gtk-redo" type="action" />
</group>
<group colspan="3" col="4">
</group>
<group colspan="4" col="4">
<notebook>
<page string="Opportunity">
<separator colspan="4" string="Communication"/>

View File

@ -8,7 +8,7 @@
<field name="type">form</field>
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
<field name="arch" type="xml">
<xpath expr="/form[@string='Opportunities']/group/button[@string='Schedule Call']" position="after">
<xpath expr="/form[@string='Opportunities']/group/group/button[@string='Schedule Call']" position="after">
<button string="Quotation" icon="terp-sale" name="%(sale_crm_wizard)d" type="action"/>
</xpath>
</field>