Comment 1 for bug 1013566

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

You're perfectly right, due to the way the Python MRO (Method Resolution Order) is computed, when a model class inherits both Model and AbstractModel, the _auto flag of AbstractModel will take precedence and the final class with have _auto=False.

We need to make sure all class attributes overridden by any of [AbstractModel, TransientModel, Model] classes is properly overridden in the others. This will take care of multiple inheritance pitfalls.

This is fixed in 6.1 at revision [1] and will be ported to trunk along with the next batch or forward-ports.

Thanks for reporting!

[1] server 6.1 rev 4216 rev-id: <email address hidden>