diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index d4b08ad2b44..60288ac3bf9 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -149,8 +149,6 @@ class crm_lead(crm_case, osv.osv): \nWhen the case is over, the state is set to \'Done\'.\ \nIf the case needs to be reviewed then the state is set to \'Pending\'.'), 'message_ids': fields.one2many('mailgate.message', 'res_id', 'Messages', domain=[('model','=',_name)]), - 'partner_assigned_id': fields.many2one('res.partner', 'Assigned Partner', help="Partner this case has been forwarded/assigned to.", select=True), - 'date_assign': fields.date('Assignation Date', help="Last date this case was forwarded/assigned to a partner"), } _defaults = { diff --git a/addons/crm/crm_opportunity.py b/addons/crm/crm_opportunity.py index c6a0ae3c370..84e1392168f 100644 --- a/addons/crm/crm_opportunity.py +++ b/addons/crm/crm_opportunity.py @@ -152,19 +152,6 @@ class crm_opportunity(osv.osv): return {'value':{}} return {'value':{'probability': stage.probability}} - def onchange_assign_id(self, cr, uid, ids, partner_assigned_id, context={}): - """This function updates the "assignation date" automatically, when manually assign a partner in the geo assign tab - @param self: The object pointer - @param cr: the current row, from the database cursor, - @param uid: the current user’s ID for security checks, - @param ids: List of stage’s IDs - @stage_id: change state id on run time """ - - if not partner_assigned_id: - return {'value':{'date_assign': False}} - else: - return {'value':{'date_assign': time.strftime('%Y-%m-%d')}} - _defaults = { 'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.lead', context=c), 'priority': crm.AVAILABLE_PRIORITIES[2][0], diff --git a/addons/crm/crm_opportunity_view.xml b/addons/crm/crm_opportunity_view.xml index d5a4963ed66..a77a097b9b5 100644 --- a/addons/crm/crm_opportunity_view.xml +++ b/addons/crm/crm_opportunity_view.xml @@ -197,21 +197,6 @@ - - - - - - -