Thursday, July 9, 2015

how to run a function at the time installation module

If you want to run a specific function, before install the module, example, re-update current data,
so add a line to define action pre_init_hook to file __openerp__.py like this:
     'pre_init_hook': 'function_A'

1 comment: