details: https://code.tryton.org/tryton/commit/5f78657f3385
branch: default
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
diffstat:
trytond/trytond/tests/test_wizard.py | 23 -----------------------
trytond/trytond/wizard/wizard.py | 1 -
2 files changed, 0 insertions(+), 24 deletions(-)
diffs (44 lines):
diff -r 2bad239629b3 -r 5f78657f3385 trytond/trytond/tests/test_wizard.py
--- a/trytond/trytond/tests/test_wizard.py Fri Oct 30 16:25:08 2026 +0100
+++ b/trytond/trytond/tests/test_wizard.py Fri Nov 06 08:34:55 2026 +0100
@@ -83,29 +83,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')
- User = pool.get('res.user')
-
- user = User(login='foo')
- user.save()
- group = Group(name="Test")
- group.save()
- action_wizard, = ActionWizard.search([
- ('wiz_name', '=', 'test.test_wizard'),
- ])
- action_wizard.groups = [group]
- action_wizard.save()
-
- with Transaction().set_user(user.id):
- 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 2bad239629b3 -r 5f78657f3385 trytond/trytond/wizard/wizard.py
--- a/trytond/trytond/wizard/wizard.py Fri Oct 30 16:25:08 2026 +0100
+++ b/trytond/trytond/wizard/wizard.py Fri Nov 06 08:34:55 2026 +0100
@@ -312,7 +312,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