<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">
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
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,
<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>