From 525f6199540c9f533cb4f8559f0a1ac68ed3bef6 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 17 Jul 2015 10:03:49 +0200 Subject: [PATCH] [FIX] make patched create downgrade correctly to v6.1 --- auditlog/models/rule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/auditlog/models/rule.py b/auditlog/models/rule.py index 67acb7a81..3b8862111 100644 --- a/auditlog/models/rule.py +++ b/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']