← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 753653] [NEW] [PS] Problem with duplication of custom object

 

On Thursday 07 April 2011, you wrote:
> Public bug reported:
> 
> trunk, revno 3377
> 
> * Administration > Customization > Database > Object, duplicate an
> existing object

> Expected result : it creates a new object containing once each field and
> it is possible to create a menu entry for this duplicated object
Not really, IMHO. If the new model name and fields are not all prefixed by 'x_' 
, we couldn't really duplicate the object. It may be safer to just forbid all.

> Obtained result : the new object contains twice the fields of the
> duplicated object. Moreover it is impossible to create a menu entry for
> this duplicated object
That's because you may be missing commit: e3d74645dd7e
A new record for ir.model is created, but both of them still reference the 
same ORM object, thus duplicating the fields on it.

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

Title:
  [PS] Problem with duplication of custom object

Status in OpenERP Server:
  Confirmed

Bug description:
  trunk, revno 3377

  * Administration > Customization > Database > Object, duplicate an
  existing object

  Obtained result : the new object contains twice the fields of the
  duplicated object. Moreover it is impossible to create a menu entry
  for this duplicated object

  Expected result : it creates a new object containing once each field
  and it is possible to create a menu entry for this duplicated object

  reported by dha, OpenERP Prof. Services



References