at_install, post_install

By default, odoo runs test with paramaters:

at_install = True
post_install = False


  • runs tests right after loading module’s files. It runs only in demo mode.

  • runs as if other not loaded yet modules are not installed at all

  • runs before marking module as installed, which also leads to not loading module’s qweb without fixing it manually (don’t forget to use special environment in odoo before version 12) .


  • runs after installing all modules in current installation set

  • runs after calling registry.setup_models(cr)

  • runs after calling model._register_hook(cr)