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 ea962dd
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 33 deletions.
3 changes: 3 additions & 0 deletions fieldservice_recurring/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ Contributors
- Kitti Upariphutthiphone <[email protected]>
- Raphaël Reverdy <[email protected]>
- Freni Patel <[email protected]>
- `APSL <https://apsl.tech>`__:

- Antoni Marroig <[email protected]>

Other credits
-------------
Expand Down
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.

2 changes: 2 additions & 0 deletions fieldservice_recurring/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
- Kitti Upariphutthiphone \<<[email protected]>\>
- Raphaël Reverdy \<<[email protected]>\>
- Freni Patel \<<[email protected]>\>
- [APSL](https://apsl.tech):
- Antoni Marroig \<<[email protected]>\>
4 changes: 4 additions & 0 deletions fieldservice_recurring/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,10 @@ <h2><a class="toc-backref" href="#toc-entry-8">Contributors</a></h2>
<li>Kitti Upariphutthiphone &lt;<a class="reference external" href="mailto:kittiu&#64;ecosoft.co.th">kittiu&#64;ecosoft.co.th</a>&gt;</li>
<li>Raphaël Reverdy &lt;<a class="reference external" href="mailto:raphael.reverdy&#64;akretion.com">raphael.reverdy&#64;akretion.com</a>&gt;</li>
<li>Freni Patel &lt;<a class="reference external" href="mailto:fpatel&#64;opensourceintegrators.com">fpatel&#64;opensourceintegrators.com</a>&gt;</li>
<li><a class="reference external" href="https://apsl.tech">APSL</a>:<ul>
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="other-credits">
Expand Down
22 changes: 5 additions & 17 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 @@ -49,10 +49,7 @@
<group>
<field name="use_byweekday" />
</group>
<div
attrs="{'invisible': [('use_byweekday', '=', False)]}"
name="weekdays"
>
<div invisible="not use_byweekday" name="weekdays">
<group>
<field name="mo" />
<field name="tu" />
Expand All @@ -66,21 +63,15 @@
<group>
<field name="use_bymonthday" />
</group>
<div
attrs="{'invisible': [('use_bymonthday', '=', False)]}"
name="monthday"
>
<div invisible="not use_bymonthday" name="monthday">
<group>
<field name="month_day" />
</group>
</div>
<group>
<field name="use_setpos" />
</group>
<div
attrs="{'invisible': [('use_setpos', '=', False)]}"
name="setpos"
>
<div invisible="not use_setpos" name="setpos">
<group>
<field name="set_pos" />
</group>
Expand All @@ -90,10 +81,7 @@
<group>
<field name="use_bymonth" />
</group>
<div
attrs="{'invisible': [('use_bymonth', '=', False)]}"
name="months"
>
<div invisible="not use_bymonth" name="months">
<group>
<field name="jan" />
<field name="feb" />
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 ea962dd

Please sign in to comment.