details:   https://code.tryton.org/tryton/commit/b5a764a7c2a9
branch:    default
user:      Lars Wuerfel <[email protected]>
date:      Mon Sep 28 18:07:34 2026 +0200
description:
        Update wizard tutorial to use tryton.cfg to register model

        Closes #15089
diffstat:

 trytond/doc/tutorial/module/wizard.rst |  16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diffs (28 lines):

diff -r 1ecc41dbcfa5 -r b5a764a7c2a9 trytond/doc/tutorial/module/wizard.rst
--- a/trytond/doc/tutorial/module/wizard.rst    Mon Sep 28 17:47:13 2026 +0200
+++ b/trytond/doc/tutorial/module/wizard.rst    Mon Sep 28 18:07:34 2026 +0200
@@ -24,15 +24,17 @@
 
         end_date = fields.Date("End Date", required=True)
 
-And we register it in the :class:`~trytond.pool.Pool` in :file:`__init__.py`:
+And we register it in the :class:`~trytond.pool.Pool` in :file:`tryton.cfg`:
 
-.. code-block:: python
+.. code-block:: ini
 
-    def register():
-        Pool.register(
-            ...,
-            opportunity.ConvertStart,
-            module='opportunity', type_='model')
+   [tryton]
+   ...
+   [register]
+   ...
+   model:
+     opportunity.ConvertStart
+
 
 Then the form view record in :file:`opportunity.xml`:
 

Reply via email to