Skip to content

Commit

Permalink
[MIG] multi_step_wizard: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
john-herholz-dt committed Feb 26, 2024
1 parent aee5cad commit 91675bb
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions multi_step_wizard/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,22 @@ Example of view (note the mode, must be primary):
<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>
Expand Down
2 changes: 1 addition & 1 deletion multi_step_wizard/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
8 changes: 4 additions & 4 deletions multi_step_wizard/readme/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ Example of view (note the mode, must be primary):
<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>
Expand Down
8 changes: 4 additions & 4 deletions multi_step_wizard/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -441,22 +441,22 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
</span><span class="nt">&lt;xpath</span><span class="w"> </span><span class="na">expr=</span><span class="s">&quot;//footer&quot;</span><span class="w"> </span><span class="na">position=</span><span class="s">&quot;before&quot;</span><span class="nt">&gt;</span><span class="w">
</span><span class="nt">&lt;h1&gt;</span><span class="w">
</span><span class="nt">&lt;field</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;name&quot;</span><span class="w">
</span><span class="na">attrs=</span><span class="s">&quot;{'readonly': [('state', '!=', 'start')]}&quot;</span><span class="w">
</span><span class="na">readonly=</span><span class="s">&quot;state != 'start'&quot;</span><span class="w">
</span><span class="na">class=</span><span class="s">&quot;oe_inline&quot;</span><span class="w">
</span><span class="na">placeholder=</span><span class="s">&quot;Name&quot;</span><span class="nt">/&gt;</span><span class="w">
</span><span class="nt">&lt;/h1&gt;</span><span class="w">
</span><span class="nt">&lt;group</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;configure&quot;</span><span class="w"> </span><span class="na">attrs=</span><span class="s">&quot;{'invisible': [('state', '!=', 'configure')]}&quot;</span><span class="nt">&gt;</span><span class="w">
</span><span class="nt">&lt;group</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;configure&quot;</span><span class="w"> </span><span class="na">invisible=</span><span class="s">&quot;state != 'configure'&quot;</span><span class="nt">&gt;</span><span class="w">
</span><span class="nt">&lt;group&gt;</span><span class="w">
</span><span class="nt">&lt;field</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;field1&quot;</span><span class="nt">/&gt;</span><span class="w">
</span><span class="nt">&lt;field</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;field2&quot;</span><span class="nt">/&gt;</span><span class="w">
</span><span class="nt">&lt;/group&gt;</span><span class="w">
</span><span class="nt">&lt;/group&gt;</span><span class="w">
</span><span class="nt">&lt;group</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;custom&quot;</span><span class="w"> </span><span class="na">attrs=</span><span class="s">&quot;{'invisible': [('state', '!=', 'custom')]}&quot;</span><span class="nt">&gt;</span><span class="w">
</span><span class="nt">&lt;group</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;custom&quot;</span><span class="w"> </span><span class="na">invisible=</span><span class="s">&quot;state != 'custom'&quot;</span><span class="nt">&gt;</span><span class="w">
</span><span class="nt">&lt;group&gt;</span><span class="w">
</span><span class="nt">&lt;field</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;field3&quot;</span><span class="nt">/&gt;</span><span class="w">
</span><span class="nt">&lt;/group&gt;</span><span class="w">
</span><span class="nt">&lt;/group&gt;</span><span class="w">
</span><span class="nt">&lt;div</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;final&quot;</span><span class="w"> </span><span class="na">attrs=</span><span class="s">&quot;{'invisible': [('state', '!=', 'final')]}&quot;</span><span class="nt">&gt;</span><span class="w">
</span><span class="nt">&lt;div</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;final&quot;</span><span class="w"> </span><span class="na">invisible=</span><span class="s">&quot;state != 'final'&quot;</span><span class="nt">&gt;</span><span class="w">
</span><span class="nt">&lt;p&gt;</span>The<span class="w"> </span>project<span class="w"> </span>is<span class="w"> </span>now<span class="w"> </span>configured.<span class="nt">&lt;/p&gt;</span><span class="w">
</span><span class="nt">&lt;/div&gt;</span><span class="w">
</span><span class="nt">&lt;/xpath&gt;</span><span class="w">
Expand Down
2 changes: 1 addition & 1 deletion multi_step_wizard/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions multi_step_wizard/views/multi_step_wizard_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
string="Next"
type="object"
class="btn-primary"
attrs="{'invisible': [('state', '=', 'final')]}"
invisible="state == 'final'"
/>
<button
name="open_previous"
string="Go Back"
type="object"
class="btn btn-default"
attrs="{'invisible': [('allow_back', '=', False)]}"
invisible="not allow_back"
/>
<button
string="Cancel"
Expand Down

0 comments on commit 91675bb

Please sign in to comment.