details:   https://code.tryton.org/tryton/commit/326374f296b3
branch:    8.0
user:      Cédric Krier <[email protected]>
date:      Tue Apr 21 10:06:09 2026 +0200
description:
        Activate modules that are not activated in demo

        0af71ac1106b wrongly tested the module to activate
        (grafted from 31f2ed6d2f7814576a6b47aab25b4e2d213754c4)
diffstat:

 demo/__main__.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 07f49e283c57 -r 326374f296b3 demo/__main__.py
--- a/demo/__main__.py  Tue Apr 21 10:06:41 2026 +0200
+++ b/demo/__main__.py  Tue Apr 21 10:06:09 2026 +0200
@@ -26,7 +26,7 @@
     for module in modules:
         if module.state == 'activated':
             module.click('upgrade')
-        elif module.state != 'not activated':
+        elif module.state == 'not activated':
             module.click('activate')
     modules = [x.name for x in Module.find([('state', '=', 'to activate')])]
     Wizard('ir.module.activate_upgrade').execute('upgrade')

Reply via email to