[FIX] upgrade_analysis: Proper UI in forms

The colspan property of some UI elements were not correctly adjusted to
the v16 sytem.

This commits fixes it.
pull/2826/head
Pedro M. Baeza 2023-10-21 13:09:30 +02:00 committed by Stefan Rijnhart
parent 916f4d39f9
commit 9bf4d5fdfe
5 changed files with 19 additions and 12 deletions

View File

@ -27,7 +27,7 @@
/>
</header>
<sheet>
<group col="4" colspan="4">
<group>
<field name="config_id" readonly="state == 'done'" />
<field name="write_files" readonly="state == 'done'" />
<field name="upgrade_path" invisible="not write_files" />
@ -39,6 +39,7 @@
nolabel="1"
widget="ace"
options="{'mode': 'txt'}"
colspan="2"
/>
</group>

View File

@ -44,7 +44,7 @@
<field name="arch" type="xml">
<form>
<sheet>
<group col="4" colspan="4">
<group>
<field name="name" />
<field name="module" />
<field name="model" />
@ -53,7 +53,7 @@
<field name="mode" />
</group>
<group string="Attributes">
<field name="attribute_ids" nolabel="1" colspan="4">
<field name="attribute_ids" nolabel="1" colspan="2">
<tree>
<field name="name" />
<field name="value" />

View File

@ -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(

View File

@ -8,12 +8,14 @@
<header>
<field name="state" widget="statusbar" />
</header>
<group invisible="state != 'draft'" colspan="4">
<group invisible="state != '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 invisible="state != 'done'" colspan="4">
<group invisible="state != 'done'">
<p>Modules initialized and record created</p>
<p colspan="2">Modules initialized and record created</p>
</group>
<footer>
<button

View File

@ -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 invisible="state != 'done'">
<p
class="alert alert-info"
role="alert"
colspan="2"
>The modules have been installed successfuly</p>
</group>
<group col="4" invisible="state != 'draft'">
<header invisible="state != 'draft'">
<button
name="select_installable_modules"
type="object"
@ -42,7 +44,13 @@
type="object"
string="All Other Modules"
/>
</group>
</header>
<button
name="unselect_modules"
type="object"
string="Clear the list"
invisible="state != 'draft'"
/>
<group invisible="state != 'draft'">
<field name="module_qty" />
<field
@ -50,11 +58,6 @@
widget="many2many_tags"
options="{'no_create': True}"
/>
<button
name="unselect_modules"
type="object"
string="Clear the list"
/>
</group>
<footer>
<button