Modules instalation order affect fields in crm.lead

Bug #996838 reported by Damián Soriano
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP Publisher's Warranty Team

Bug Description

In OpenERP v6.1, if I install first the module 'base_contact' and then 'crm' everything works fine, I can see the field 'contact_id' in a crm.lead in the database.

But if I install 'crm' first and then 'base_contact' the field 'contact_id' is not present in the database. This may be because of the way crm.lead inherits from res.partner.address and they way the fields of res.partner.address are taken to create the crm.lead table (which I imagine is on instalation of the module crm).

This is causing me problems if I want to add fields to res.partner.address that are replicated in crm.lead.

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Damián,

First of all, I want to say nice bug report.

This things also generated a bug (traceback) on 6.1, If you install first crm then base_contact then contact_id 's error will be generated like "Programming error: column crm_lead.contact_id does not exist" which is same as a lp:982751 ( which is for location_id (res.partner.location), I will add contact_id(res.partner.contact) error there also ).

base_contact are already removed from trunk so this is a bocking point for 6.1, So this need to be fix for stable6.1.

But you have posted this as a manner of framework, So would you please check lp:996816 (which consider same problem).
So I will make this as a duplicate of lp:996816
Don't worry about contact_id field because I will add a comment( update a bug) lp:982751 for contact_id also cause both problem fix same way with same file.

Thank you very much!

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.