Skip to content

Commit

Permalink
[FIX] upgrade_analysis: Proper UI in forms
Browse files Browse the repository at this point in the history
The colspan property of some UI elements were not correctly adjusted to
the v16 sytem.

This commits fixes it.
  • Loading branch information
pedrobaeza committed Oct 22, 2023
1 parent a640b77 commit 60bf9de
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions upgrade_analysis/views/view_upgrade_analysis.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
nolabel="1"
widget="ace"
options="{'mode': 'txt'}"
colspan="2"
/>
</group>

Expand Down
1 change: 1 addition & 0 deletions upgrade_analysis/wizards/upgrade_install_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class UpgradeInstallWizard(models.TransientModel):
module_ids = fields.Many2many(
comodel_name="ir.module.module",
domain=lambda x: x._module_ids_domain(),
string="Modules",
)

module_qty = fields.Integer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
<header>
<field name="state" widget="statusbar" />
</header>
<group states="draft" colspan="4">
<group states="draft">
<p
colspan="2"
>This will reinitialize all the modules installed on this database. Do not continue if you use this database in production.</p>
</group>
<group states="done" colspan="4">
<p>Modules initialized and record created</p>
<group states="done">
<p colspan="2">Modules initialized and record created</p>
</group>
<footer>
<button
Expand Down
17 changes: 10 additions & 7 deletions upgrade_analysis/wizards/view_upgrade_install_wizard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@
<p
class="alert alert-warning"
role="alert"
colspan="2"
>This will install the selected modules on the database. Do not continue if you use this database in production.</p>
</group>
<group states="done">
<p
class="alert alert-info"
role="alert"
colspan="2"
>The modules have been installed successfuly</p>
</group>
<group col="4" states="draft">
<header states="draft">
<button
name="select_installable_modules"
type="object"
Expand All @@ -42,19 +44,20 @@
type="object"
string="All Other Modules"
/>
</group>
</header>
<button
name="unselect_modules"
type="object"
string="Clear the list"
states="draft"
/>
<group states="draft">
<field name="module_qty" />
<field
name="module_ids"
widget="many2many_tags"
options="{'no_create': True}"
/>
<button
name="unselect_modules"
type="object"
string="Clear the list"
/>
</group>
<footer>
<button
Expand Down

0 comments on commit 60bf9de

Please sign in to comment.