Skip to content

Commit

Permalink
[MIG] fieldservice_recurring: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed Apr 16, 2024
1 parent c359378 commit e6d03dd
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 21 deletions.
2 changes: 1 addition & 1 deletion fieldservice_recurring/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Field Service Recurring Work Orders",
"summary": "Manage recurring Field Service orders",
"version": "16.0.2.0.0",
"version": "17.0.1.0.0",
"category": "Field Service",
"author": "Brian McMaster, "
"Open Source Integrators, "
Expand Down
7 changes: 0 additions & 7 deletions fieldservice_recurring/migrations/16.0.2.0.0/pre-migration.py

This file was deleted.

10 changes: 5 additions & 5 deletions fieldservice_recurring/views/fsm_frequency.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
name="web_ribbon"
text="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
invisible="active"
/>
<div class="oe_title">
<h1>
Expand All @@ -50,7 +50,7 @@
<field name="use_byweekday" />
</group>
<div
attrs="{'invisible': [('use_byweekday', '=', False)]}"
invisible="not use_byweekday"
name="weekdays"
>
<group>
Expand All @@ -67,7 +67,7 @@
<field name="use_bymonthday" />
</group>
<div
attrs="{'invisible': [('use_bymonthday', '=', False)]}"
invisible="not use_bymonthday"
name="monthday"
>
<group>
Expand All @@ -78,7 +78,7 @@
<field name="use_setpos" />
</group>
<div
attrs="{'invisible': [('use_setpos', '=', False)]}"
invisible="not use_setpos"
name="setpos"
>
<group>
Expand All @@ -91,7 +91,7 @@
<field name="use_bymonth" />
</group>
<div
attrs="{'invisible': [('use_bymonth', '=', False)]}"
invisible="not use_bymonth"
name="months"
>
<group>
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_recurring/views/fsm_frequency_set.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
name="web_ribbon"
text="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
invisible="active"
/>
<div class="oe_title">
<h1>
Expand Down
4 changes: 2 additions & 2 deletions fieldservice_recurring/views/fsm_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
name="action_view_fsm_recurring"
class="oe_stat_button"
icon="fa-calendar"
attrs="{'invisible': [('fsm_recurring_id', '=', False)]}"
invisible="not fsm_recurring_id"
groups="fieldservice_recurring.group_fsm_recurring"
>
<span class="o_stat_text">Recurring Order</span>
<field name="fsm_recurring_id" attrs="{'invisible': 1}" />
<field name="fsm_recurring_id" invisible="1" />
</button>
</xpath>
</field>
Expand Down
4 changes: 2 additions & 2 deletions fieldservice_recurring/views/fsm_recurring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
class="oe_highlight"
type="object"
groups="fieldservice.group_fsm_dispatcher"
attrs="{'invisible': [('state', 'in',('close', 'progress'))]}"
invisible="state in ['close', 'progress']"
/>
<button
id="action_suspend"
name="action_suspend"
string="Suspend"
type="object"
groups="fieldservice.group_fsm_dispatcher"
attrs="{'invisible': [('state', 'in', ('draft', 'close'))]}"
invisible="state in ['draft', 'close']"
/>
<field name="state" widget="statusbar" />
</header>
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_recurring/views/fsm_recurring_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
name="web_ribbon"
text="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
invisible="active"
/>
<div class="oe_title">
<h1>
Expand Down
4 changes: 2 additions & 2 deletions fieldservice_route/views/fsm_route_dayroute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@
string="Complete order"
type="object"
icon="fa-check text-success"
attrs="{'invisible': [('stage_id', 'in', [%(fieldservice.fsm_stage_completed)d, %(fieldservice.fsm_stage_cancelled)d])]}"
invisible="stage_id in [%(fieldservice.fsm_stage_completed)d, %(fieldservice.fsm_stage_cancelled)d]"
/>
<button
name="action_cancel"
string="Cancel order"
type="object"
icon="fa-times-circle text-danger"
attrs="{'invisible': [('stage_id', 'in', [%(fieldservice.fsm_stage_completed)d, %(fieldservice.fsm_stage_cancelled)d])]}"
invisible="stage_id in [%(fieldservice.fsm_stage_completed)d, %(fieldservice.fsm_stage_cancelled)d]"
/>
</tree>
</field>
Expand Down

0 comments on commit e6d03dd

Please sign in to comment.