details: https://code.tryton.org/tryton/commit/8b95ecf624a0
branch: default
user: Cédric Krier <[email protected]>
date: Fri Nov 06 10:11:04 2026 +0100
description:
Add warnings in to the documentation about when wizard access rights
are not checked
diffstat:
trytond/doc/ref/wizard.rst | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 5f78657f3385 -r 8b95ecf624a0 trytond/doc/ref/wizard.rst
--- a/trytond/doc/ref/wizard.rst Fri Nov 06 08:34:55 2026 +0100
+++ b/trytond/doc/ref/wizard.rst Fri Nov 06 10:11:04 2026 +0100
@@ -37,6 +37,11 @@
deletion of the wizard and it may return one of the :ref:`client side action
keywords <topics-views-client-actions>`.
+ .. warning::
+ The wizard's access rights do not apply to the execution of the end
+ method.
+ No ``active_`` keywords are set in the context either.
+
.. attribute:: Wizard._readonly
A boolean to set :attr:`trytond.transaction.Transaction.readonly` when
@@ -84,9 +89,17 @@
Create a session for the wizard and returns a tuple containing the session
id, the starting and ending state.
+ .. warning::
+ The wizard's access rights do not apply to the creation of a session.
+ No ``active_`` keywords are set in the context either.
+
.. classmethod:: Wizard.delete(session_id)
- Delete the session.
+ Delete the session and run the :attr:`Wizard.end_state` method if exists.
+
+ .. warning::
+ The wizard's access rights do not apply to the creation of a session.
+ No ``active_`` keywords are set in the context either.
.. classmethod:: Wizard.execute(session_id, data, state_name)