Merge pull request #208 from hbrunn/8.0-auditlog_downgrade_create_correctly

[FIX] make patched create downgrade correctly to v6.1
pull/272/head
Yannick Vaucher 2015-08-24 12:06:57 +02:00
commit 84bcb5fd40
1 changed files with 1 additions and 0 deletions

View File

@ -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']