Skip to content

Commit bba1b8a

Browse files
committed
[FIX] util/modules.py: trigger auto install only for new modules
Oversight introduced in the recent changes regarding the auto install of modules. Part of odoo/upgrade#5354 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent 648c940 commit bba1b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ def module_auto_install(cr, module, auto_install):
575575
)
576576

577577
cr.execute("UPDATE ir_module_module SET auto_install = %s WHERE name = %s", [auto_install is not False, module])
578-
trigger_auto_install(cr, module)
579578

580579

581580
def trigger_auto_install(cr, module):
@@ -664,6 +663,7 @@ def new_module(cr, module, deps=(), auto_install=False, category=None):
664663
_set_module_category(cr, module, category)
665664

666665
module_auto_install(cr, module, auto_install)
666+
trigger_auto_install(cr, module)
667667

668668

669669
def _caller_version(depth=2):

0 commit comments

Comments
 (0)