
import logging
from openerp import api, models

_logger = logging.getLogger(__name__)


class IrModel(models.Model):
    _inherit = "ir.model"

    @api.cr
    def _register_hook(self, cr):
        """Only warn in installed instances."""
        _logger.warning("This module is DEPRECATED. See README.")
        return super(IrModel, self)._register_hook(cr)


import logging
from openerp import api, models

_logger = logging.getLogger(__name__)


class IrModel(models.Model):
    _inherit = "ir.model"

    @api.cr
    def _register_hook(self, cr):
        """Only warn in installed instances."""
        _logger.info("WARNING: This module is DEPRECATED. See README.")
        return super(IrModel, self)._register_hook(cr)

Downgrade to INFO, since runbots install this.
Downgrade to INFO, since runbots install this.

  
  import logging
  from openerp import api, models
  
  _logger = logging.getLogger(__name__)
  
  
  class IrModel(models.Model):
      _inherit = "ir.model"
  
      @api.cr
      def _register_hook(self, cr):
          """Only warn in installed instances."""
-         _logger.warning("This module is DEPRECATED. See README.")
+         _logger.info("WARNING: This module is DEPRECATED. See README.")
          return super(IrModel, self)._register_hook(cr)
  
Downgrade to INFO, since runbots install this.
## Code Before:

import logging
from openerp import api, models

_logger = logging.getLogger(__name__)


class IrModel(models.Model):
    _inherit = "ir.model"

    @api.cr
    def _register_hook(self, cr):
        """Only warn in installed instances."""
        _logger.warning("This module is DEPRECATED. See README.")
        return super(IrModel, self)._register_hook(cr)

## Instruction:
Downgrade to INFO, since runbots install this.
## Code After:

import logging
from openerp import api, models

_logger = logging.getLogger(__name__)


class IrModel(models.Model):
    _inherit = "ir.model"

    @api.cr
    def _register_hook(self, cr):
        """Only warn in installed instances."""
        _logger.info("WARNING: This module is DEPRECATED. See README.")
        return super(IrModel, self)._register_hook(cr)
