Foram Katharotiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1111185-fka into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1111185 in OpenERP Addons: "[Trunk/7.0] CRM: Duplicate Opportunity"
  https://bugs.launchpad.net/openobject-addons/+bug/1111185

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1111185-fka/+merge/146055

Hello,

 fix the issue of the state of new opportunity comes in won state when create 
duplicate opportunity.

Thanks,
FKA
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1111185-fka/+merge/146055
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1111185-fka.
=== modified file 'crm/crm_lead.py'
--- crm/crm_lead.py	2013-01-15 10:03:53 +0000
+++ crm/crm_lead.py	2013-02-01 07:30:28 +0000
@@ -96,6 +96,11 @@
             vals['stage_id'] = self._get_default_stage_id(cr, uid, context=ctx)
         return super(crm_lead, self).create(cr, uid, vals, context=context)
 
+    def copy(self, cr, uid, id, default=None, context=None):
+        default = dict(default or {})
+        default['stage_id'] = False
+        return super(crm_lead, self).copy(cr, uid, id, default, context)
+
     def _get_default_section_id(self, cr, uid, context=None):
         """ Gives default section by checking if present in the context """
         return self._resolve_section_id_from_context(cr, uid, context=context) or False

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to