[FIX] base: ormcache invalidation in ir.config.parameter

Writing on a parameter invalidates the ormcache and propagates the invalidation
to other workers.  Setting a parameter to its current value should not trigger
ormcache invalidations.
This commit is contained in:
Raphael Collet
2018-11-23 14:02:17 +00:00
parent e181f592f3
commit c96d4cdbad
@@ -83,7 +83,8 @@ class IrConfigParameter(models.Model):
if param:
old = param.value
if value is not False and value is not None:
param.write({'value': value})
if str(value) != old:
param.write({'value': value})
else:
param.unlink()
return old