From 91675bb42502a730dd18bc5e8c6baaebf02393a3 Mon Sep 17 00:00:00 2001 From: John Herholz Date: Tue, 9 Jan 2024 10:07:28 +0100 Subject: [PATCH] [MIG] multi_step_wizard: Migration to 17.0 --- multi_step_wizard/README.rst | 8 ++++---- multi_step_wizard/__manifest__.py | 2 +- multi_step_wizard/readme/USAGE.md | 8 ++++---- multi_step_wizard/static/description/index.html | 8 ++++---- multi_step_wizard/tests/__init__.py | 2 +- multi_step_wizard/views/multi_step_wizard_views.xml | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/multi_step_wizard/README.rst b/multi_step_wizard/README.rst index cc6728e88f..eecf2d179b 100644 --- a/multi_step_wizard/README.rst +++ b/multi_step_wizard/README.rst @@ -97,22 +97,22 @@ Example of view (note the mode, must be primary):

- + - + -
+

The project is now configured.

diff --git a/multi_step_wizard/__manifest__.py b/multi_step_wizard/__manifest__.py index f8ab662190..197a828b70 100644 --- a/multi_step_wizard/__manifest__.py +++ b/multi_step_wizard/__manifest__.py @@ -2,7 +2,7 @@ { "name": "Multi-Steps Wizards", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "author": "Camptocamp,Odoo Community Association (OCA)", "license": "AGPL-3", "depends": ["base"], diff --git a/multi_step_wizard/readme/USAGE.md b/multi_step_wizard/readme/USAGE.md index 0b0cffcc70..7a377c6358 100644 --- a/multi_step_wizard/readme/USAGE.md +++ b/multi_step_wizard/readme/USAGE.md @@ -55,22 +55,22 @@ Example of view (note the mode, must be primary):

- + - + -
+

The project is now configured.

diff --git a/multi_step_wizard/static/description/index.html b/multi_step_wizard/static/description/index.html index 11dabf08d0..301465dfa2 100644 --- a/multi_step_wizard/static/description/index.html +++ b/multi_step_wizard/static/description/index.html @@ -441,22 +441,22 @@

Usage

<xpath expr="//footer" position="before"> <h1> <field name="name" - attrs="{'readonly': [('state', '!=', 'start')]}" + readonly="state != 'start'" class="oe_inline" placeholder="Name"/> </h1> - <group name="configure" attrs="{'invisible': [('state', '!=', 'configure')]}"> + <group name="configure" invisible="state != 'configure'"> <group> <field name="field1"/> <field name="field2"/> </group> </group> - <group name="custom" attrs="{'invisible': [('state', '!=', 'custom')]}"> + <group name="custom" invisible="state != 'custom'"> <group> <field name="field3"/> </group> </group> - <div name="final" attrs="{'invisible': [('state', '!=', 'final')]}"> + <div name="final" invisible="state != 'final'"> <p>The project is now configured.</p> </div> </xpath> diff --git a/multi_step_wizard/tests/__init__.py b/multi_step_wizard/tests/__init__.py index 8a7810aa7d..d161186dd0 100644 --- a/multi_step_wizard/tests/__init__.py +++ b/multi_step_wizard/tests/__init__.py @@ -1,4 +1,4 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from . import test_multi_step_wizard from . import common +from . import test_multi_step_wizard diff --git a/multi_step_wizard/views/multi_step_wizard_views.xml b/multi_step_wizard/views/multi_step_wizard_views.xml index c46163460f..af9776954b 100644 --- a/multi_step_wizard/views/multi_step_wizard_views.xml +++ b/multi_step_wizard/views/multi_step_wizard_views.xml @@ -14,14 +14,14 @@ string="Next" type="object" class="btn-primary" - attrs="{'invisible': [('state', '=', 'final')]}" + invisible="state == 'final'" />