← Back to team overview

openerp-india team mailing list archive

[Bug 1210102] [NEW] Duplicate onchange partner_id methods in crm.lead

 

Public bug reported:

I noticed that in crm.lead, there are 2 onchange methods for partner_id:
- on_change_partner
- onchange_partner_id (defined in base_stage)

The first one is called when changing the partner_id in the lead form.
The second one when changing the partner_id in the opportunity form. The
methods seem to be almost identical, except that the second one does an
address_get for 'contact'.

Is there any reason why the behavior when changing a partner_id is different between a lead and an opportunity?
And why is there an onchange_partner_id method in base_stage? It has nothing to do with stages...

Openerp version: 7.0-20130728-231025

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1210102

Title:
  Duplicate onchange partner_id methods in crm.lead

Status in OpenERP Addons (modules):
  New

Bug description:
  I noticed that in crm.lead, there are 2 onchange methods for partner_id:
  - on_change_partner
  - onchange_partner_id (defined in base_stage)

  The first one is called when changing the partner_id in the lead form.
  The second one when changing the partner_id in the opportunity form.
  The methods seem to be almost identical, except that the second one
  does an address_get for 'contact'.

  Is there any reason why the behavior when changing a partner_id is different between a lead and an opportunity?
  And why is there an onchange_partner_id method in base_stage? It has nothing to do with stages...

  Openerp version: 7.0-20130728-231025

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1210102/+subscriptions


Follow ups

References