← Back to team overview

openerp-india team mailing list archive

[Bug 982751] 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

-- 
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/982751

Title:
  If base_contact installed after crm :Lead will break due to
  location_id and contact _id field (problem on _inherit)

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  After installing CRM, leads works fine.  If you install Document
  Management after (document), then you get the following when going to
  the leads list view:

  InternalError: current transaction is aborted, commands ignored until
  end of transaction block

  And the leads already there don't display.  If you try to save a lead,
  you get:

  ProgrammingError: column "location_id" of relation "crm_lead" does not exist
  LINE 1: ...id","city","user_id","zip","title","partner_name","location_...
                                                               ^
  (arrow lines up under location)

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


References