Merge lp:~openerp-dev/openobject-addons/trunk-bug-1235237-ssh into lp:openobject-addons

Proposed by Sunil Sharma(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1235237-ssh
Merge into: lp:openobject-addons
Diff against target: 16 lines (+6/-0)
1 file modified
crm_claim/crm_claim.py (+6/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1235237-ssh
Reviewer Review Type Date Requested Status
Turkesh Patel (openERP) (community) Approve
OpenERP Core Team Pending
Review via email: mp+200502@code.launchpad.net

Description of the change

Hello,

       I have add copy method to set stage_id in crm_claim .

Thanks
Sunil Sharma (SSH)

To post a comment you must log in.
9037. By Sunil Sharma(OpenERP)

[imp]:improve code

Revision history for this message
Turkesh Patel (openERP) (turkesh-tinyerp) :
review: Approve

Unmerged revisions

9037. By Sunil Sharma(OpenERP)

[imp]:improve code

9036. By Sunil Sharma(OpenERP)

[imp]:add copy method to set stage_id

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'crm_claim/crm_claim.py'
2--- crm_claim/crm_claim.py 2013-11-27 15:32:57 +0000
3+++ crm_claim/crm_claim.py 2014-01-08 08:46:33 +0000
4@@ -164,6 +164,12 @@
5 # context: no_log, because subtype already handle this
6 return super(crm_claim, self).create(cr, uid, vals, context=context)
7
8+ def copy(self, cr, uid, id, default=None, context=None):
9+ if not default:
10+ default = {}
11+ default['stage_id'] = self._get_default_stage_id(cr, uid, context=context)
12+ return super(crm_claim, self).copy(cr, uid, id, default, context=context)
13+
14 # -------------------------------------------------------
15 # Mail gateway
16 # -------------------------------------------------------

Subscribers

People subscribed via source and target branches

to all changes: