Duplicate onchange partner_id methods in crm.lead

Bug #1210102 reported by Karel Marissens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Wishlist
OpenERP Publisher's Warranty Team

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

Tags: maintenance

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Foram Katharotiya (OpenERP) (fka-openerp) wrote :

Hello,

  - It has been Fixed in this branch https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-596392-fka.
    revno: 9359
    revid: <email address hidden>

  -It will be available in 7.0 soon.

Thanks,
FKA

Changed in openobject-addons:
status: New → Fix Committed
Revision history for this message
Thibault Delavallée (OpenERP) (tde-openerp) wrote :

Hello,

In 7.0 we won't fix something about duplicate code. This is not considered as a bug. In trunk the whole base_status module has been removed, and all related methods quite refactored. This bug is therefore not valid anymore in trunk.

Changed in openobject-addons:
importance: Undecided → Wishlist
status: Fix Committed → Invalid
no longer affects: ocb-addons/7.0
no longer affects: ocb-addons
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.