Comment 6 for bug 1029344

Revision history for this message
Vo Minh Thu (thu) wrote :

Hi Guewen,

Does setting _register=False when defining your own abstract model solve the problem?

As said by Ajay, filter models when _auto is False would not be accurate enough (i.e. a model can have its _auto attribute to false but still exists in database, this is the case for some reports. The _auto attribute only means the ORM should not create the table but the model code can do it in its init() method).

We have to better document the behavior of the _register flag. If the suggestion above works, please edit the bug report saying we have to update the comments for _register (instead of just dropping dead the bug report). (The comment will be better than nothing, while we still have to create the proper ORM documentation.)