Use new cursor to check access in ModuleInstallUpgrade
check_access take a lock on many tables and so it prevents those tables to be modified by the installation/upgrade process as far as the cursor is not closed. issue4223 review13571002
This commit is contained in:
1 parent
231a4a8826
commit
28e4d67df8
1 file changed
+6
@@ -483,6 +483,12 @@ class ModuleInstallUpgrade(Wizard):
|
||||
])
|
||||
config = StateAction('ir.act_module_config_wizard')
|
||||
|
||||
@classmethod
|
||||
def check_access(cls):
|
||||
# Use new cursor to prevent lock when installing modules
|
||||
with Transaction().new_cursor():
|
||||
super(ModuleInstallUpgrade, cls).check_access()
|
||||
|
||||
@staticmethod
|
||||
def default_start(fields):
|
||||
pool = Pool()
|
||||
|
||||
Reference in new issue
Block a user