diff --git a/trytond/doc/tutorial/module/wizard.rst b/trytond/doc/tutorial/module/wizard.rst index 74b8d095df..a81c2b9da3 100644 --- a/trytond/doc/tutorial/module/wizard.rst +++ b/trytond/doc/tutorial/module/wizard.rst @@ -24,15 +24,17 @@ First we define a :class:`~trytond.model.ModelView` class in 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 + + [tryton] + ... + [register] + ... + model: + opportunity.ConvertStart - def register(): - Pool.register( - ..., - opportunity.ConvertStart, - module='opportunity', type_='model') Then the form view record in :file:`opportunity.xml`: