Skip to content

Commit

Permalink
[MIG] fieldservice_isp_flow: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EdgarRetes committed Nov 5, 2024
1 parent 5ee69b3 commit 074ee4b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 24 deletions.
10 changes: 5 additions & 5 deletions fieldservice_isp_flow/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Field Service - Flow for ISP
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github
:target: https://github.com/OCA/field-service/tree/17.0/fieldservice_isp_flow
:target: https://github.com/OCA/field-service/tree/18.0/fieldservice_isp_flow
:alt: OCA/field-service
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/field-service-17-0/field-service-17-0-fieldservice_isp_flow
:target: https://translation.odoo-community.org/projects/field-service-18-0/field-service-18-0-fieldservice_isp_flow
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/field-service&target_branch=17.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/field-service&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -74,7 +74,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/field-service/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_isp_flow%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_isp_flow%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand Down Expand Up @@ -126,6 +126,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-osi-scampbell|

This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/17.0/fieldservice_isp_flow>`_ project on GitHub.
This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/18.0/fieldservice_isp_flow>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion fieldservice_isp_flow/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Field Service - Flow for ISP",
"summary": "Field Service workflow for Internet Service Providers",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Field Service",
"author": "Open Source Integrators, " "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/field-service",
Expand Down
2 changes: 0 additions & 2 deletions fieldservice_isp_flow/data/fsm_stage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<odoo noupdate="1">

<record id="fsm_stage_confirmed" model="fsm.stage">
<field name="name">Confirmed</field>
<field name="sequence">20</field>
Expand Down Expand Up @@ -47,5 +46,4 @@
<field name="is_default">True</field>
<field name="custom_color">#95A5A6</field>
</record>

</odoo>
17 changes: 10 additions & 7 deletions fieldservice_isp_flow/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -368,7 +369,7 @@ <h1 class="title">Field Service - Flow for ISP</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d82a5e99e72df7399e0a0d7e4e2cc9a8abf04eb183d44edc9a7af4e46b4342a8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/field-service/tree/17.0/fieldservice_isp_flow"><img alt="OCA/field-service" src="https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/field-service-17-0/field-service-17-0-fieldservice_isp_flow"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/field-service&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/field-service/tree/18.0/fieldservice_isp_flow"><img alt="OCA/field-service" src="https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/field-service-18-0/field-service-18-0-fieldservice_isp_flow"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/field-service&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module is an add-on for the Field Service application in Odoo. It
provides default stages for orders and some validation logic when
changing current stage.</p>
Expand Down Expand Up @@ -423,7 +424,7 @@ <h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/field-service/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_isp_flow%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_isp_flow%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -458,13 +459,15 @@ <h2><a class="toc-backref" href="#toc-entry-8">Other credits</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/osi-scampbell"><img alt="osi-scampbell" src="https://github.com/osi-scampbell.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/field-service/tree/17.0/fieldservice_isp_flow">OCA/field-service</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/field-service/tree/18.0/fieldservice_isp_flow">OCA/field-service</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion fieldservice_isp_flow/tests/test_fsm_isp_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

from odoo import fields
from odoo.exceptions import ValidationError
from odoo.tests.common import Form, TransactionCase
from odoo.tests import Form
from odoo.tests.common import TransactionCase


class FSMIspFlowCase(TransactionCase):
Expand Down
13 changes: 5 additions & 8 deletions fieldservice_isp_flow/views/fsm_order.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<odoo>

<!-- Operations -->
<record id="fsm_order_form" model="ir.ui.view">
<field name="name">fsm.order.form</field>
Expand Down Expand Up @@ -65,12 +64,12 @@
</field>
</record>

<record id="fsm_order_tree_view" model="ir.ui.view">
<field name="name">fsm.order.tree</field>
<record id="fsm_order_list_view" model="ir.ui.view">
<field name="name">fsm.order.list</field>
<field name="model">fsm.order</field>
<field name="inherit_id" ref="fieldservice.fsm_order_tree_view" />
<field name="inherit_id" ref="fieldservice.fsm_order_list_view" />
<field name="arch" type="xml">
<tree name="orders" position="attributes">
<list name="orders" position="attributes">
<attribute name="decoration-danger">stage_id in (
%(fieldservice.fsm_stage_new)d,
%(fieldservice_isp_flow.fsm_stage_confirmed)d,
Expand All @@ -82,11 +81,10 @@
%(fieldservice_isp_flow.fsm_stage_enroute)d,
%(fieldservice_isp_flow.fsm_stage_started)d,
%(fieldservice.fsm_stage_completed)d)</attribute>
</tree>
</list>
</field>
</record>


<!-- Search for fsm.order-->
<record id="fsm_order_search_view" model="ir.ui.view">
<field name="name">fsm.order.search</field>
Expand All @@ -104,5 +102,4 @@
</search>
</field>
</record>

</odoo>

0 comments on commit 074ee4b

Please sign in to comment.