[IMP] crm: improve the view of opportunity2phonecall and fix the field value in wizard

bzr revid: sbh@tinyerp.com-20100310064624-dlwt4rh32kl2ooqn
This commit is contained in:
sbh (Open ERP)
2010-03-10 12:16:24 +05:30
parent 0f0e3ccb96
commit a36a2c70c1
4 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -68,7 +68,7 @@
<field name="probability"/>
<field name="date_deadline" string="Expected Closing"/>
<button string="Schedule Call"
name="%(wizard_crm_opportunity_reschedule_phone_call)d" icon="gtk-redo" type="action" />
name="%(opportunity2phonecall_act)d" icon="gtk-redo" type="action" />
</group>
<notebook colspan="4">
<page string="Opportunity">
+2 -1
View File
@@ -26,9 +26,10 @@ import crm_phonecall_wizard
import wizard_crm_send_email
import wizard_crm_new_send_email
import wizard_history_event
import crm_phonecall2phonecall
import lead_to_partner
import crm_phonecall2phonecall
import phonecall2partner
import phonecall2meeting
import phonecall_to_opportunity
+4 -5
View File
@@ -71,15 +71,14 @@ class crm_opportunity2phonecall(osv.osv_memory):
for opportunity in opportunites:
new_case = phonecall_case_obj.create(cr, uid, {
'name' : opportunity.name,
'case_id' : opportunity.id,
'user_id' : this.user_id,
'categ_id' : opportunity.categ_id,
'description' : opportunity.description,
'case_id' : opportunity.id ,
'user_id' : this.user_id and this.user_id.id or Flase,
'categ_id' : opportunity.categ_id and opportunity.categ_id.id or Flase,
'description' : opportunity.description or False,
'date' : this.date,
'section_id' : opportunity.section_id and opportunity.section_id.id or False,
'partner_id': opportunity.partner_id and opportunity.partner_id.id or False,
'partner_address_id':opportunity.partner_address_id and opportunity.partner_address_id.id or False,
'description': opportunity.description or '',
'partner_phone' : opportunity.phone or (opportunity.partner_address_id and opportunity.partner_address_id.phone or False),
'partner_mobile' : opportunity.partner_address_id and opportunity.partner_address_id.mobile or False,
'priority': opportunity.priority,
+5 -3
View File
@@ -6,12 +6,14 @@
<field name="model">crm.opportunity2phonecall</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Schedule Other Call" col="2">
<form string="Schedule Other Call">
<group colspan="2" >
<field name="name"/>
<field name="date" string="Planned Date"/>
<newline/>
<field name="user_id" />
<field name="date" string="Planned Date"/>
<field name="section_id"/>
<group colspan="2" col="2" >
<label string ="" colspan="2"/>
<button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
<button name="action_apply" type="object" string="_Apply" icon="gtk-apply" />
</group>