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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
base_optional_quick_create/models/ir_model.py
|
|
@ -51,4 +51,6 @@ class IrModel(models.Model): |
|
|
|
def write(self, vals): |
|
|
|
res = super(IrModel, self).write(vals) |
|
|
|
self._patch_quick_create() |
|
|
|
if 'avoid_quick_create' in vals: |
|
|
|
self.pool.signal_registry_change() |
|
|
|
return res |