old_contents: # coding: utf-8
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  from openerp import api, fields, models
  
  
  class AuditlogMethods(models.Model):
      _name = 'auditlog.methods'
      _description = 'Auditlog custom methods'
      _order = 'name'
  
      name = fields.Char(required=True)
      message = fields.Char(required=True)
      rule_id = fields.Many2one('auditlog.rule', readonly=True)
      use_active_ids = fields.Boolean(default=False)
      context_field_number = fields.Integer(default=0)
  
new_contents: # coding: utf-8
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  from openerp import fields, models
  
  
  class AuditlogMethods(models.Model):
      _name = 'auditlog.methods'
      _description = 'Auditlog custom methods'
      _order = 'name'
  
      name = fields.Char(required=True)
      message = fields.Char(required=True)
      rule_id = fields.Many2one('auditlog.rule', readonly=True)
      use_active_ids = fields.Boolean(default=False)
      context_field_number = fields.Integer(default=0)
  
subject: Remove unneeded import