[FIX] make patched create downgrade correctly to v6.1
This commit is contained in:
parent
0d8f6ae0ae
commit
8e57f56193
|
|
@ -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']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue