← Back to team overview

openerp-expert-framework team mailing list archive

Module init method

 

Good morning everyone,

I've got a simple question here, is there a way to execute some code when
"initializing" a module.
I mean, I can put some code in the .py file, but I don't have access to any
cursor. Unless there is a way to get the cursor ?

Is there a way to define for example an init method which would be called
when module is loaded,
in which we could use the pool and a cursor ?

Thanks,

Follow ups