Ashutosh Srivastava(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-689566-asr into
lp:openobject-addons.
Requested reviews:
Bhumika (OpenERP) (sbh-openerp)
Related bugs:
Bug #689566 in OpenERP Addons: "[PS] Inconsistency when scheduling a call
from an opportunity"
https://bugs.launchpad.net/openobject-addons/+bug/689566
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-689566-asr/+merge/66104
Hello
Inconsistency when scheduling a call from an opportunity now its not
showing the value when the fields are empty
Thank You.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-689566-asr/+merge/66104
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-689566-asr.
=== modified file 'crm/crm_phonecall.py'
--- crm/crm_phonecall.py 2011-06-27 09:44:20 +0000
+++ crm/crm_phonecall.py 2011-06-28 10:31:33 +0000
@@ -91,7 +91,7 @@
'date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
'priority': crm.AVAILABLE_PRIORITIES[2][0],
'state': _get_default_state,
- 'user_id': lambda self,cr,uid,ctx: uid,
+ #'user_id': lambda self,cr,uid,ctx: uid,
'active': 1,
}
=== modified file 'crm/wizard/crm_opportunity_to_phonecall.py'
--- crm/wizard/crm_opportunity_to_phonecall.py 2011-05-16 05:48:02 +0000
+++ crm/wizard/crm_opportunity_to_phonecall.py 2011-06-28 10:31:33 +0000
@@ -126,7 +126,7 @@
'categ_id' : this.categ_id.id,
'description' : opp.description or False,
'date' : this.date,
- 'section_id' : this.section_id.id or opp.section_id.id or False,
+ 'section_id' : this.section_id.id or False,
'partner_id': opp.partner_id and opp.partner_id.id or False,
'partner_address_id': opp.partner_address_id and opp.partner_address_id.id or False,
'partner_phone' : opp.phone or (opp.partner_address_id and opp.partner_address_id.phone or False),
@@ -134,7 +134,9 @@
'priority': opp.priority,
'opportunity_id': opp.id
}
+
new_case = phonecall_obj.create(cr, uid, vals, context=context)
+
if this.action == 'schedule':
phonecall_obj.case_open(cr, uid, [new_case])
elif this.action == 'log':
@@ -142,14 +144,15 @@
value = {
'name': _('Phone Call'),
- 'domain': "[('user_id','=',%s),('opportunity_id','=',%s)]" % (uid,opp.id),
+ #'domain': "[('user_id','=',%s),('opportunity_id','=',%s)]" % (uid,opp.id),
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'crm.phonecall',
'res_id' : new_case,
'views': [(id3, 'form'), (id2, 'tree'), (False, 'calendar')],
'type': 'ir.actions.act_window',
- 'search_view_id': res['res_id']
+ 'search_view_id': res['res_id'],
+ 'context':context,
}
return value
_______________________________________________
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