ORM: early debugging of ORM objects.
ORM: early debugging of ORM objects.

The orm_template._debug flag can now be set from the config file, so that
objects will start off with debugging. Then, it makes sense to decorate
all those early sql calls (at module init/update time) to find out why
some object initialises in that (weird) way.

example for the config:

[logging_orm]
project.task = True

xrg/openerp-server,xrg/openerp-server