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
528 B

  1. # -*- coding: utf-8 -*-
  2. # © 2016 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. import logging
  5. from openerp import api, models
  6. _logger = logging.getLogger(__name__)
  7. class IrModel(models.Model):
  8. _inherit = "ir.model"
  9. @api.cr
  10. def _register_hook(self, cr):
  11. """Only warn in installed instances."""
  12. _logger.info("WARNING: This module is DEPRECATED. See README.")
  13. return super(IrModel, self)._register_hook(cr)