[MIG] report_async: Migration to 17.0

This commit is contained in:
Sakthivel
2024-05-10 18:11:47 +05:30
parent 21310d51a7
commit efcecf04d1
4 changed files with 34 additions and 46 deletions

View File

@@ -12,20 +12,17 @@
name="run_async"
string="Run Background"
icon="fa-cogs"
attrs="{'invisible': [('allow_async', '=', False)]}"
invisible="not allow_async"
/>
<button
type="object"
name="view_files"
string="Files"
icon="fa-copy"
attrs="{'invisible': [('allow_async', '=', False)]}"
/>
<field name="allow_async" invisible="1" />
<field
name="job_status"
attrs="{'invisible': [('allow_async', '=', False)]}"
invisible="not allow_async"
/>
<field name="allow_async" column_invisible="1" />
<field name="job_status" optional="hide" />
<field name="email_notify" />
</tree>
</field>
@@ -38,8 +35,7 @@
<div
class="alert alert-warning"
role="alert"
attrs="{'invisible': ['|', ('job_status', 'in', ['done', 'failed', False]),
('allow_async', '=', False)]}"
invisible="not allow_async or (job_status in ['done', 'failed', False])"
style="margin-bottom:0px;"
>
<p>
@@ -51,8 +47,7 @@
<div
class="alert alert-danger"
role="alert"
attrs="{'invisible': ['|', ('job_status', '!=', 'failed'),
('allow_async', '=', False)]}"
invisible="not allow_async or job_status != 'failed'"
style="margin-bottom:0px;"
>
<p>
@@ -63,8 +58,7 @@
<div
class="alert alert-success"
role="alert"
attrs="{'invisible': ['|', ('job_status', '!=', 'done'),
('allow_async', '=', False)]}"
invisible="not allow_async or job_status != 'done'"
style="margin-bottom:0px;"
>
<p>
@@ -75,7 +69,7 @@
</p>
</div>
<sheet>
<div class="oe_read_only oe_right oe_button_box" name="buttons">
<div class="oe_button_box" name="button_box">
<button
type="object"
name="run_now"
@@ -87,14 +81,14 @@
name="run_async"
string="Run Background"
icon="fa-cogs"
attrs="{'invisible': [('allow_async', '=', False)]}"
invisible="not allow_async"
/>
<button
type="object"
name="view_files"
string="Files"
icon="fa-copy"
attrs="{'invisible': [('allow_async', '=', False)]}"
invisible="not allow_async"
/>
<button
type="object"
@@ -102,7 +96,7 @@
string="Jobs"
icon="fa-align-justify"
groups="queue_job.group_queue_job_manager"
attrs="{'invisible': [('allow_async', '=', False)]}"
invisible="not allow_async"
/>
</div>
<group>
@@ -113,23 +107,17 @@
context="{'access_sudo': True}"
/>
<field name="allow_async" />
<field
name="email_notify"
attrs="{'invisible': [('allow_async', '=', False)]}"
/>
<field name="email_notify" invisible="not allow_async" />
</group>
<group>
<field
name="job_status"
attrs="{'invisible': [('allow_async', '=', False)]}"
/>
<field name="job_status" invisible="not allow_async" />
<field name="group_ids" widget="many2many_tags" />
</group>
<group
name="job_info"
string="Last Run Job Error"
colspan="2"
attrs="{'invisible': ['|', ('job_info', '=', False), ('allow_async', '=', False)]}"
invisible="not allow_async or not job_info"
>
<field nolabel="1" name="job_info" />
</group>
@@ -155,7 +143,7 @@
</record>
<menuitem
id="menu_report_async"
parent="base.menu_board_root"
parent="spreadsheet_dashboard.spreadsheet_dashboard_menu_root"
action="action_report_async"
sequence="10"
/>