Browse Source

[FIX] make patched create downgrade correctly to v6.1

pull/1556/head
Holger Brunn 9 years ago
committed by sebalix
parent
commit
6e203fac25
  1. 1
      auditlog/models/rule.py

1
auditlog/models/rule.py

@ -207,6 +207,7 @@ class auditlog_rule(models.Model):
def _make_create(self):
"""Instanciate a create method that log its calls."""
@api.model
@api.returns('self', lambda value: value.id)
def create(self, vals, **kwargs):
self = self.with_context(auditlog_disabled=True)
rule_model = self.env['auditlog.rule']

Loading…
Cancel
Save