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.

15 lines
496 B

  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)