details:   https://code.tryton.org/tryton/commit/be34b747138d
branch:    7.8
user:      Cédric Krier <[email protected]>
date:      Fri Nov 06 08:34:55 2026 +0100
description:
        Do not check access when creating wizard session

        Closes #15220
        (grafted from 5f78657f3385ee9e8c4ccc679ec3ffc816942cb8)
diffstat:

 trytond/trytond/tests/test_wizard.py |  19 -------------------
 trytond/trytond/wizard/wizard.py     |   1 -
 2 files changed, 0 insertions(+), 20 deletions(-)

diffs (40 lines):

diff -r 0386f181ad89 -r be34b747138d trytond/trytond/tests/test_wizard.py
--- a/trytond/trytond/tests/test_wizard.py      Thu Nov 05 23:05:37 2026 +0100
+++ b/trytond/trytond/tests/test_wizard.py      Fri Nov 06 08:34:55 2026 +0100
@@ -88,25 +88,6 @@
         self.assertEqual(group_b.name, 'Group B')
 
     @with_transaction()
-    def test_session_without_access(self):
-        "Create session for wizard without access"
-        pool = Pool()
-        ActionWizard = pool.get('ir.action.wizard')
-        Group = pool.get('res.group')
-        Wizard = pool.get('test.test_wizard', type='wizard')
-
-        group = Group(name="Test")
-        group.save()
-        action_wizard, = ActionWizard.search([
-                ('wiz_name', '=', 'test.test_wizard'),
-                ])
-        action_wizard.groups = [group]
-        action_wizard.save()
-
-        with self.assertRaises(AccessError):
-            session_id, start_state, end_state = Wizard.create()
-
-    @with_transaction()
     def test_session_different_user(self):
         "Use session from a different user"
         pool = Pool()
diff -r 0386f181ad89 -r be34b747138d trytond/trytond/wizard/wizard.py
--- a/trytond/trytond/wizard/wizard.py  Thu Nov 05 23:05:37 2026 +0100
+++ b/trytond/trytond/wizard/wizard.py  Fri Nov 06 08:34:55 2026 +0100
@@ -313,7 +313,6 @@
     def create(cls):
         "Create a session"
         Session = Pool().get('ir.session.wizard')
-        cls.check_access()
         return (Session.create([{}])[0].id, cls.start_state, cls.end_state)
 
     @classmethod

Reply via email to