Comment 2 for bug 753653

Revision history for this message
xrg (xrg) wrote : 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.