Browse Source
[FIX] make patched create downgrade correctly to v6.1
pull/1040/head
Holger Brunn
9 years ago
committed by
Enric Tobella
No known key found for this signature in database
GPG Key ID: 1A2546A1B7BA2451
1 changed files with
1 additions and
0 deletions
-
auditlog/models/rule.py
|
@ -207,6 +207,7 @@ class auditlog_rule(models.Model): |
|
|
def _make_create(self): |
|
|
def _make_create(self): |
|
|
"""Instanciate a create method that log its calls.""" |
|
|
"""Instanciate a create method that log its calls.""" |
|
|
@api.model |
|
|
@api.model |
|
|
|
|
|
@api.returns('self', lambda value: value.id) |
|
|
def create(self, vals, **kwargs): |
|
|
def create(self, vals, **kwargs): |
|
|
self = self.with_context(auditlog_disabled=True) |
|
|
self = self.with_context(auditlog_disabled=True) |
|
|
rule_model = self.env['auditlog.rule'] |
|
|
rule_model = self.env['auditlog.rule'] |
|
|