Comment 14 for bug 982751

Revision history for this message
Amit Parik (amit-parik) wrote : Re: If base_contact installed after crm :Lead will break due to location_id and contact _id field (problem on _inherit)

Hello,

I investigate more on this issue this problem occurs due to creating a table (object loading) sequence.

On crm_lead object we have inherit(_inherit) the res.partner.address with _name= crm.lead, So it will create a new table with contains all field of res.partner.address. After that we have again inherit res.partner.address and add the location_id(res.partner.location) as well as contact_id (res.partner.contact). So if you install base_contact after the crm then crm_lead doesn't contains (location_id, contact_id) because it will doesn't update the crm.lead object (due to the framework limitation). This issue already posted on framework please check lp:996816 (We are trying to fix this from server side first).

Let me explain further from fixing: We can not add directly location_id, contact_id because we need to add res.partner.location and res.partner.contact on crm (Which is not feasible for stable version). Also for stable version we can't wait for that this issue will fix from server side. So Finally this is a blocking point for 6.1 and we have fix it.

As per my suggestion we have to put a base_contact under dependency of crm then this issue will fix easily.

@Patrick : For temporary solution of this issue please update your db with (-u all -d dbname) then your issue will be solved or put a base_contact under the depends on crm.

Thanks