← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 766944] Re: 6.0.2: Custom-Field in res_partner_addresscauses Error with CRM-Module

 

The problem seems to be the following:

When creating a custom field on a model (res.partner.address in your
example), it is copied in the (python) columns of the _inheriting models
(here, crm.lead). But the ORM doesn't really create the corresponding
columns in db for _inheriting models althoug there are in their python
columns.

The fix we have chosen is to not _inherit custom fields.

We had two options here: handle the custom field just like regular field
(and _inheriting models would receive also the custom field) or add it
only to the specified model (and not to its children).

The first option is more consistent with how the ORM works in general.
But it is also quite involved w.r.t. to end-users. We prefer here to
have something that is simple for the end-user. So adding a custom field
to a model doesn't require to know if it is _inherited from or not by
other models.

For the person who will fix the bug: the place to look at is probably
the createInstance() method in the osv.py file.

** Changed in: openobject-server
   Importance: Low => Medium

** Changed in: openobject-server
       Status: Fix Committed => In Progress

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/766944

Title:
  6.0.2: Custom-Field in res_partner_addresscauses Error  with CRM-
  Module

Status in OpenERP Server:
  In Progress

Bug description:
  I put some custom fields into res.partner.address. After installation of the CRM-module these custom-fields are copied into object crm.lead but as type of base-field. Then when I try to create a lead there is always an error-message concerning these fields copied to crm.lead but non existing in database-table crm_lead. Very confusing?
  Seems to be a bug in CRM-Module


References