Merge lp:~openerp-dev/openobject-addons/trunk-bug-1095264-cga into lp:openobject-addons

Proposed by Chandni Gandhi(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1095264-cga
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
crm/crm_lead.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1095264-cga
Reviewer Review Type Date Requested Status
Atul Patel(OpenERP) (community) Approve
OpenERP Core Team Pending
Review via email: mp+141703@code.launchpad.net

Description of the change

Hello,

Put the condition if context contains default_section_id or not in crm.lead.

Thanks.

To post a comment you must log in.
8490. By Chandni Gandhi(OpenERP)

[IMP]:Return default_section_id instead of none

Revision history for this message
Atul Patel(OpenERP) (atp-openerp) wrote :

hello,

seems ok to me..

Thanks for your fix.

review: Approve
8491. By Chandni Gandhi(OpenERP)

[MERGE]:With latest code

Unmerged revisions

8491. By Chandni Gandhi(OpenERP)

[MERGE]:With latest code

8490. By Chandni Gandhi(OpenERP)

[IMP]:Return default_section_id instead of none

8489. By Chandni Gandhi(OpenERP)

[FIX]:Add condition if context contains default_section_id or not

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'crm/crm_lead.py'
2--- crm/crm_lead.py 2013-02-06 13:22:19 +0000
3+++ crm/crm_lead.py 2013-02-07 09:39:27 +0000
4@@ -119,7 +119,7 @@
5 section_ids = self.pool.get('crm.case.section').name_search(cr, uid, name=section_name, context=context)
6 if len(section_ids) == 1:
7 return int(section_ids[0][0])
8- return None
9+ return self.pool.get('res.users').browse(cr, uid, uid, context).default_section_id.id
10
11 def _resolve_type_from_context(self, cr, uid, context=None):
12 """ Returns the type (lead or opportunity) from the type context

Subscribers

People subscribed via source and target branches

to all changes: