You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
685 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2009 Sharoon Thomas Open Labs Business Solutions
  3. # Copyright 2014 Tecnativa Pedro M. Baeza
  4. # Copyright 2015 Antiun Ingeniería S.L. - Jairo Llopis
  5. # Copyright 2016 Sodexis
  6. # Copyright 2017 Tecnativa - Sergio Teruel
  7. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  8. from openerp.addons.base_multi_image.hooks import pre_init_hook_for_submodules
  9. from openerp.addons.base_multi_image.hooks import uninstall_hook_for_submodules
  10. def pre_init_hook(cr):
  11. pre_init_hook_for_submodules(cr, "res.partner", "image")
  12. def uninstall_hook(cr, registry): # pragma: no cover
  13. uninstall_hook_for_submodules(cr, registry, "res.partner")