summaryrefslogtreecommitdiff
path: root/addons/base_import_module/models/ir_module.py
diff options
context:
space:
mode:
authorFabien Meghazi <fme@odoo.com>2019-03-07 17:32:04 +0000
committerFabien Meghazi <fme@odoo.com>2019-03-18 16:11:25 +0000
commitf1c72ee8ee44c35707d5a18167eb8efeca3c4a6f (patch)
treeafedfeb60fbd06c482124fdd143ad4d981998f0b /addons/base_import_module/models/ir_module.py
parent744bdd275eff08fe7593dd8ca7aa9162b54ab275 (diff)
[FIX] base: fix ir.logging database locking when using --log-db
Before this patch, the ir.logging's write_uid field was a many2one which could cause a module install/update to hang when the module is changing the res.users model schema and when this module causes to orm to warn through the logger. (eg: declaring two res.users fields with the same string attribute) In such situation the transaction cursor that is processing the res_users table alteration will be granted an exclusive postgresql lock hence causing the ir_logging insertion to block because of the write_uid foreign key to res_users. This issue has never been raised by runbot as it is using a remote database with --log-db Note: the write_uid conversion from m2o to int was left over in commit e6a5d82 closes odoo/odoo#32015 Signed-off-by: Christophe Simonis <chs@odoo.com>
Diffstat (limited to 'addons/base_import_module/models/ir_module.py')
0 files changed, 0 insertions, 0 deletions