methods.py 496 B

123456789101112131415
  1. # coding: utf-8
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from openerp import fields, models
  4. class AuditlogMethods(models.Model):
  5. _name = 'auditlog.methods'
  6. _description = 'Auditlog custom methods'
  7. _order = 'name'
  8. name = fields.Char(required=True)
  9. message = fields.Char(required=True)
  10. rule_id = fields.Many2one('auditlog.rule', readonly=True)
  11. use_active_ids = fields.Boolean(default=False)
  12. context_field_number = fields.Integer(default=0)