Kuldeep Joshi(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-906214-kjo into 
lp:openobject-addons.

Requested reviews:
  Bhumika (OpenERP) (sbh-openerp)
Related bugs:
  Bug #906214 in OpenERP Addons: "stay in opportunity after logging a phone 
call"
  https://bugs.launchpad.net/openobject-addons/+bug/906214

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-906214-kjo/+merge/86389

Default action is set log call and stay in kanban view after register the log 
call from the opportunity view
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-906214-kjo/+merge/86389
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-906214-kjo.
=== modified file 'crm/crm_lead_view.xml'
--- crm/crm_lead_view.xml	2011-12-20 09:53:58 +0000
+++ crm/crm_lead_view.xml	2011-12-20 12:18:26 +0000
@@ -330,7 +330,7 @@
                                         <a string="Edit" icon="gtk-edit" type="edit"/>
                                         <a string="Change Color" icon="color-picker" type="color" name="color"/>
                                         <a string="Send New Email" name="%(mail.action_email_compose_message_wizard)d" icon="terp-mail-message-new" type="action"/>
-                                        <a string="Schedule/Log Call" name="%(opportunity2phonecall_act)d" icon="terp-call-start" type="action"/>
+                                        <a string="Log Call" name="%(opportunity2phonecall_act)d" icon="terp-call-start" type="action"/>
                                         <a string="Schedule Meeting" name="action_makeMeeting" type="object" icon="stock_calendar"/>
                                         <a string="Add Internal Note" name="%(crm.action_crm_add_note)d" context="{'model': 'crm.lead' }" icon="terp-document-new" type="action"/>
                                     </div>

=== modified file 'crm/wizard/crm_opportunity_to_phonecall.py'
--- crm/wizard/crm_opportunity_to_phonecall.py	2011-12-11 20:53:49 +0000
+++ crm/wizard/crm_opportunity_to_phonecall.py	2011-12-20 12:18:26 +0000
@@ -40,7 +40,7 @@
 
         record_ids = context and context.get('active_ids', []) or []
         res = {}
-        res.update({'action': 'schedule', 'date': time.strftime('%Y-%m-%d %H:%M:%S')})
+        res.update({'action': 'log', 'date': time.strftime('%Y-%m-%d %H:%M:%S')})
         for opp in opp_obj.browse(cr, uid, record_ids, context=context):
             if 'name' in fields:
                 res.update({'name': opp.name})
@@ -73,7 +73,7 @@
                 data.section_id and data.section_id.id or False, \
                 data.categ_id and data.categ_id.id or False, \
                 action=data.action, context=context)
-        return phonecall.redirect_phonecall_view(cr, uid, call_ids[opportunity_ids[0]], context=context)
+        return {'type': 'ir.actions.act_window_close'}
 
 crm_opportunity2phonecall()
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to