[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
parent
916f4d39f9
commit
9bf4d5fdfe
|
@ -27,7 +27,7 @@
|
||||||
/>
|
/>
|
||||||
</header>
|
</header>
|
||||||
<sheet>
|
<sheet>
|
||||||
<group col="4" colspan="4">
|
<group>
|
||||||
<field name="config_id" readonly="state == 'done'" />
|
<field name="config_id" readonly="state == 'done'" />
|
||||||
<field name="write_files" readonly="state == 'done'" />
|
<field name="write_files" readonly="state == 'done'" />
|
||||||
<field name="upgrade_path" invisible="not write_files" />
|
<field name="upgrade_path" invisible="not write_files" />
|
||||||
|
@ -39,6 +39,7 @@
|
||||||
nolabel="1"
|
nolabel="1"
|
||||||
widget="ace"
|
widget="ace"
|
||||||
options="{'mode': 'txt'}"
|
options="{'mode': 'txt'}"
|
||||||
|
colspan="2"
|
||||||
/>
|
/>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form>
|
<form>
|
||||||
<sheet>
|
<sheet>
|
||||||
<group col="4" colspan="4">
|
<group>
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="module" />
|
<field name="module" />
|
||||||
<field name="model" />
|
<field name="model" />
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
<field name="mode" />
|
<field name="mode" />
|
||||||
</group>
|
</group>
|
||||||
<group string="Attributes">
|
<group string="Attributes">
|
||||||
<field name="attribute_ids" nolabel="1" colspan="4">
|
<field name="attribute_ids" nolabel="1" colspan="2">
|
||||||
<tree>
|
<tree>
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="value" />
|
<field name="value" />
|
||||||
|
|
|
@ -24,6 +24,7 @@ class UpgradeInstallWizard(models.TransientModel):
|
||||||
module_ids = fields.Many2many(
|
module_ids = fields.Many2many(
|
||||||
comodel_name="ir.module.module",
|
comodel_name="ir.module.module",
|
||||||
domain=lambda x: x._module_ids_domain(),
|
domain=lambda x: x._module_ids_domain(),
|
||||||
|
string="Modules",
|
||||||
)
|
)
|
||||||
|
|
||||||
module_qty = fields.Integer(
|
module_qty = fields.Integer(
|
||||||
|
|
|
@ -8,12 +8,14 @@
|
||||||
<header>
|
<header>
|
||||||
<field name="state" widget="statusbar" />
|
<field name="state" widget="statusbar" />
|
||||||
</header>
|
</header>
|
||||||
<group invisible="state != 'draft'" colspan="4">
|
<group invisible="state != 'draft'">
|
||||||
<p
|
<p
|
||||||
|
colspan="2"
|
||||||
>This will reinitialize all the modules installed on this database. Do not continue if you use this database in production.</p>
|
>This will reinitialize all the modules installed on this database. Do not continue if you use this database in production.</p>
|
||||||
</group>
|
</group>
|
||||||
<group invisible="state != 'done'" colspan="4">
|
<group invisible="state != 'done'">
|
||||||
<p>Modules initialized and record created</p>
|
<p>Modules initialized and record created</p>
|
||||||
|
<p colspan="2">Modules initialized and record created</p>
|
||||||
</group>
|
</group>
|
||||||
<footer>
|
<footer>
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -12,15 +12,17 @@
|
||||||
<p
|
<p
|
||||||
class="alert alert-warning"
|
class="alert alert-warning"
|
||||||
role="alert"
|
role="alert"
|
||||||
|
colspan="2"
|
||||||
>This will install the selected modules on the database. Do not continue if you use this database in production.</p>
|
>This will install the selected modules on the database. Do not continue if you use this database in production.</p>
|
||||||
</group>
|
</group>
|
||||||
<group invisible="state != 'done'">
|
<group invisible="state != 'done'">
|
||||||
<p
|
<p
|
||||||
class="alert alert-info"
|
class="alert alert-info"
|
||||||
role="alert"
|
role="alert"
|
||||||
|
colspan="2"
|
||||||
>The modules have been installed successfuly</p>
|
>The modules have been installed successfuly</p>
|
||||||
</group>
|
</group>
|
||||||
<group col="4" invisible="state != 'draft'">
|
<header invisible="state != 'draft'">
|
||||||
<button
|
<button
|
||||||
name="select_installable_modules"
|
name="select_installable_modules"
|
||||||
type="object"
|
type="object"
|
||||||
|
@ -42,7 +44,13 @@
|
||||||
type="object"
|
type="object"
|
||||||
string="All Other Modules"
|
string="All Other Modules"
|
||||||
/>
|
/>
|
||||||
</group>
|
</header>
|
||||||
|
<button
|
||||||
|
name="unselect_modules"
|
||||||
|
type="object"
|
||||||
|
string="Clear the list"
|
||||||
|
invisible="state != 'draft'"
|
||||||
|
/>
|
||||||
<group invisible="state != 'draft'">
|
<group invisible="state != 'draft'">
|
||||||
<field name="module_qty" />
|
<field name="module_qty" />
|
||||||
<field
|
<field
|
||||||
|
@ -50,11 +58,6 @@
|
||||||
widget="many2many_tags"
|
widget="many2many_tags"
|
||||||
options="{'no_create': True}"
|
options="{'no_create': True}"
|
||||||
/>
|
/>
|
||||||
<button
|
|
||||||
name="unselect_modules"
|
|
||||||
type="object"
|
|
||||||
string="Clear the list"
|
|
||||||
/>
|
|
||||||
</group>
|
</group>
|
||||||
<footer>
|
<footer>
|
||||||
<button
|
<button
|
||||||
|
|
Loading…
Reference in New Issue