Modules instalation order affect fields in crm.lead
Bug #996838 reported by
Damián Soriano
This bug report is a duplicate of:
Bug #996816: using _inherit and _name for a class is not modular.
Edit
Remove
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 |
To post a comment you must log in.
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!