Browse Source

Merge pull request #1454 from guewen/fix-quick-create-signal-change

Fix avoid_quick_create with multiprocess
pull/1462/head
Pedro M. Baeza 6 years ago
committed by GitHub
parent
commit
f6de5b144b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      base_optional_quick_create/models/ir_model.py

2
base_optional_quick_create/models/ir_model.py

@ -51,4 +51,6 @@ class IrModel(models.Model):
def write(self, vals): def write(self, vals):
res = super(IrModel, self).write(vals) res = super(IrModel, self).write(vals)
self._patch_quick_create() self._patch_quick_create()
if 'avoid_quick_create' in vals:
self.pool.signal_registry_change()
return res return res
Loading…
Cancel
Save