Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] fieldservice_recurring: Migration to 16.0 #1105

Merged
merged 99 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
ec52674
[ADD][11.0] fieldservice_recurring (#179)
brian10048 May 13, 2019
3d6c611
[FIX] fieldservice_recurring (#209)
brian10048 May 15, 2019
0601d19
[12.0][MIG] fieldservice_recurring
kittiu Jun 27, 2019
220fd75
Add button-box to recurring order form
hparfr Jul 17, 2019
c7eebd8
Add button to navigate from Orders to Recurring Orders
hparfr Aug 20, 2019
f328c86
Add missing xml and contributors
hparfr Aug 20, 2019
cc2473d
Prepare order with duration and categories from template
hparfr Aug 20, 2019
71d95bd
Create all recurring orders at confirmation
hparfr Aug 20, 2019
09331df
[IMP] UI
brian10048 Aug 21, 2019
bf7fe91
[IMP][12.0] fieldservice_recurring
murtuzasaleh Sep 5, 2019
37b433d
Remove customer_id
hparfr Sep 6, 2019
8c73920
[IMP] fieldservice_recurring
max3903 Oct 11, 2019
d70db50
[IMP] fieldservice_vehicle_stock
max3903 Oct 11, 2019
2ca94c6
[UPD] Update fieldservice_recurring.pot
oca-travis Nov 14, 2019
3b8148a
Added translation using Weblate (Spanish (Chile))
Nov 22, 2019
a30a4d1
Added translation using Weblate (German)
marylla Nov 22, 2019
b799d20
Translated using Weblate (German)
marylla Nov 22, 2019
0b1cda4
Add team_id field in Recurring FS Orders
clementmbr Nov 22, 2019
683481f
fieldservice_recurring 12.0.1.1.0
OCA-git-bot Nov 25, 2019
e3a3869
Translated using Weblate (German)
marylla Nov 26, 2019
3506740
Translated using Weblate (German)
marylla Nov 26, 2019
5985d88
Translated using Weblate (German)
marylla Nov 26, 2019
6218157
[FIX] fieldservice_recurring: test
brian10048 Dec 9, 2019
08b2823
fieldservice_recurring 12.0.1.1.1
OCA-git-bot Dec 9, 2019
3e8a941
Translated using Weblate (Spanish (Chile))
Dec 10, 2019
2f605a7
Translated using Weblate (Spanish (Chile))
Jan 3, 2020
3e537a9
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 16, 2020
1c71fa2
[ADD] Spanish (es) translation
max3903 Jan 16, 2020
076e025
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 5, 2020
990cb95
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
8928251
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
74de0c5
[12.0][IMP] fieldservice_recurring
brian10048 Jun 24, 2020
85cd614
fieldservice_recurring 12.0.1.2.0
OCA-git-bot Jun 28, 2020
e4b11ad
Translated using Weblate (Spanish)
brian10048 Jul 14, 2020
7dbe063
[IMP] fieldservice_recurring: black, isort, prettier
brian10048 Jul 18, 2020
684ad17
[MIG] fieldservice_recurring: Migration to 13.0
brian10048 Jul 18, 2020
9672967
[UPD] README.rst
OCA-git-bot Jul 18, 2020
e02cb51
[IMP] fieldservice_recurring: black, isort, prettier
brian10048 Jul 20, 2020
b2b225c
[UPD] Update fieldservice_recurring.pot
oca-travis Jul 20, 2020
880e3f8
fieldservice_recurring 13.0.1.0.1
OCA-git-bot Jul 20, 2020
8ddb80d
Update translation files
oca-transbot Jul 20, 2020
9262ba7
[UPD] Update fieldservice_recurring.pot
oca-travis Jul 29, 2020
e368fc4
Update translation files
oca-transbot Jul 29, 2020
dd1da81
Update translation files
oca-transbot Aug 16, 2020
8c3b4e4
Added translation using Weblate (Spanish (Argentina))
ibuioli Apr 27, 2021
ee28e97
Translated using Weblate (Spanish (Argentina))
ibuioli May 30, 2021
9bf0778
Added translation using Weblate (Turkish)
tate11 Jul 10, 2021
88d61d2
Translated using Weblate (Turkish)
tate11 Jul 10, 2021
2537c9a
Added translation using Weblate (Italian)
mymage Sep 27, 2021
866890a
Translated using Weblate (Italian)
mymage Sep 27, 2021
4a5a668
Translated using Weblate (Italian)
mymage Sep 29, 2021
a269134
[MIG] fieldservice_recurring: Migration to 14.0
brian10048 Nov 30, 2021
6881473
[IMP] fieldservice_recurring: Edit orders in form
brian10048 Nov 30, 2021
a2e5270
[IMP] fieldservice_recurring: Add search view
brian10048 Nov 30, 2021
cfa4a54
[UPD] Update fieldservice_recurring.pot
oca-travis Dec 13, 2021
5d59019
[UPD] README.rst
OCA-git-bot Dec 13, 2021
43eba5f
fieldservice_recurring: adapt to RFC #735
hparfr Jul 20, 2021
fa1cfb0
fieldservice_recurring: Fix api.constraint with recordset
hparfr Oct 18, 2021
3d1f886
[IMP] fieldservice_recurring: Add demo data
brian10048 Dec 14, 2019
8680f4e
[IMP] fieldservice_recurring: black, isort, prettier
hparfr Dec 29, 2021
0ba1ccd
Fixed _compute_request_late methods
aleuffre Jun 28, 2021
972e0d3
fieldservice_recurring 14.0.1.1.0
OCA-git-bot Dec 29, 2021
3eea4b3
fieldservice_recurring 14.0.1.2.0
OCA-git-bot Dec 29, 2021
d2ab1f8
fieldservice_recurring 14.0.1.3.0
OCA-git-bot Dec 31, 2021
02710ee
[UPD] Update fieldservice_recurring.pot
oca-travis Jan 27, 2022
bf768fa
[UPD] README.rst
OCA-git-bot Jan 27, 2022
4d632fc
fieldservice_recurring 14.0.1.4.0
OCA-git-bot Jan 27, 2022
f1b756d
Update translation files
oca-transbot Jan 27, 2022
62208ca
Translated using Weblate (Spanish (Argentina))
ibuioli Jan 30, 2022
1774f76
[15.0][FIX] Travis
Freni-OSI Feb 8, 2022
c5a3548
[15.0][MIG] fieldservice_recurring
Freni-OSI Feb 10, 2022
39f0e66
[UPD] Update fieldservice_recurring.pot
Nov 1, 2022
25f7370
[UPD] README.rst
OCA-git-bot Nov 1, 2022
9310c0a
Update translation files
weblate Nov 1, 2022
a08de6a
Translated using Weblate (Italian)
mymage Nov 2, 2022
1d98e40
Translated using Weblate (Italian)
mymage Nov 4, 2022
489ffa8
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 12, 2022
9821c7c
Translated using Weblate (German)
NICO-SOLUTIONS Dec 3, 2022
f5ba4f7
Translated using Weblate (German)
NICO-SOLUTIONS Dec 4, 2022
bf0814d
Translated using Weblate (Italian)
francesco-ooops Dec 29, 2022
ce3f605
Translated using Weblate (Italian)
francesco-ooops Dec 30, 2022
1838213
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
e24ec96
Translated using Weblate (Spanish)
macagua Mar 2, 2023
42c892b
Translated using Weblate (Spanish)
macagua Mar 2, 2023
b4e0196
Translated using Weblate (Spanish (Chile))
macagua Mar 2, 2023
83211e7
Translated using Weblate (Spanish (Chile))
macagua Mar 2, 2023
0f74eaf
Translated using Weblate (Italian)
francesco-ooops Mar 7, 2023
195d76c
Translated using Weblate (Italian)
mymage Mar 30, 2023
e572e0d
Translated using Weblate (Italian)
mymage Apr 4, 2023
f9191f8
Translated using Weblate (Italian)
mymage Apr 5, 2023
14b9570
Translated using Weblate (Italian)
francesco-ooops Apr 7, 2023
3cb2e44
Translated using Weblate (Italian)
mymage Apr 12, 2023
2cb0190
Translated using Weblate (Italian)
francesco-ooops Apr 26, 2023
002ca30
Translated using Weblate (Italian)
francesco-ooops May 12, 2023
d6c79d7
Translated using Weblate (Italian)
mymage Jun 14, 2023
ce92d31
Translated using Weblate (Italian)
mymage Jun 15, 2023
110e234
Translated using Weblate (Italian)
mymage Jun 16, 2023
4929b43
[IMP] fieldservice_recurring: black, isort, prettier
kaynnan Jul 10, 2023
a588d98
[MIG] fieldservice_recurring: Migration to 16.0
kaynnan Jul 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions fieldservice_recurring/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
===================================
Field Service Recurring Work Orders
===================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/15.0/fieldservice_recurring
: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-15-0/field-service-15-0-fieldservice_recurring
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/264/15.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows you to manage your recurring field service work orders

Recurring settings are configured via the FSM Frequency model. Multiple
FSM Frequency can be combined on a FSM Frequency Rule Set which enables
highly configurable recurring rules calculated using the dateutil rrule
python library.

**Table of contents**

.. contents::
:local:

Installation
============

To install Field Service and have the mapping features, you need to install GeoEngine.

Please refer to the installation instructions available at:
https://github.com/OCA/geospatial/tree/12.0/base_geoengine

Configuration
=============

To configure this module, you need to:

* Setup your Frequencies to establish recurring rules

1. In fieldservice app go to Menu > Configuration > Orders > Frequencies
2. Create a Frequency
3. Setup your Frequency by giving it a descriptive name, set your interval
and the interval type. Use the additional settings to build a recurring rule
based on python's dateutil rrule parameters.


* Setup your Frequency Rule Sets used to calculate recurring order dates

1. In fieldservice app go to Menu > Configuration > Orders > Frequency Rule Set
2. Create a Frequency Rule Set
3. Setup your Frequency Rule by first giving it a descriptive name. Complete
the form by entering the number of days ahead this rule will schedule work.
4. Finally, choose which Frequencies this rule will use to compute the dates
used for scheduling.


* Setup your recurring order templates to define standard recurring orders

1. In fieldservice app go to Menu > Configuration > Orders > Recurring Templates
2. Name the template and set fields to define which order template is repeated
and what Frequency Rule Set will be used

Usage
=====

To use this module, you need to:

* In fieldservice app go to Menu > Operations > Recurring Orders
* Create a new Recurring Order model
* Select a Recurring Template and modify as needed.
* Set other fields for fsm location, etc
* Confirm the recurrence to create first order
* Future orders will be created via cron task

Known issues / Roadmap
======================

The roadmap of the Field Service application is documented on
`Github <https://github.com/OCA/field-service/issues/1>`_.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_recurring%0Aversion:%2015.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.

Credits
=======

Authors
~~~~~~~

* Brian McMaster
* Open Source Integrators

Contributors
~~~~~~~~~~~~

* Brian McMaster <[email protected]>
* Kitti Upariphutthiphone <[email protected]>
* Raphaël Reverdy <[email protected]>
* Freni Patel <[email protected]>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Open Source Integrators <https://opensourceintegrators.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-wolfhall| image:: https://github.com/wolfhall.png?size=40px
:target: https://github.com/wolfhall
:alt: wolfhall
.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px
:target: https://github.com/max3903
:alt: max3903
.. |maintainer-brian10048| image:: https://github.com/brian10048.png?size=40px
:target: https://github.com/brian10048
:alt: brian10048

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-wolfhall| |maintainer-max3903| |maintainer-brian10048|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions fieldservice_recurring/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2019 Brian McMaster, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
34 changes: 34 additions & 0 deletions fieldservice_recurring/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright (C) 2019 Brian McMaster, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Field Service Recurring Work Orders",
"summary": "Manage recurring Field Service orders",
"version": "16.0.1.0.0",
"category": "Field Service",
"author": "Brian McMaster, "
"Open Source Integrators, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/field-service",
"depends": ["fieldservice"],
"data": [
"data/ir_sequence.xml",
"security/res_groups.xml",
"security/ir.model.access.csv",
"security/recurring_security.xml",
"views/fsm_frequency.xml",
"views/fsm_frequency_set.xml",
"views/fsm_order.xml",
"views/fsm_recurring_template.xml",
"views/fsm_recurring.xml",
"data/recurring_cron.xml",
],
"demo": [
"demo/frequency_demo.xml",
"demo/frequency_set_demo.xml",
"demo/recur_template_demo.xml",
],
"license": "AGPL-3",
"development_status": "Beta",
"maintainers": ["wolfhall", "max3903", "brian10048"],
}
11 changes: 11 additions & 0 deletions fieldservice_recurring/data/ir_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Sequence for fsm.recurring -->
<record id="seq_fsm_order" model="ir.sequence">
<field name="name">FSM Recurring Order</field>
<field name="code">fsm.recurring</field>
<field name="prefix">RFO</field>
<field name="padding">3</field>
<field name="company_id" eval="False" />
</record>
</odoo>
13 changes: 13 additions & 0 deletions fieldservice_recurring/data/recurring_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding='UTF-8' ?>
<odoo>
<record model="ir.cron" id="recurring_orders_cron">
<field name="name">Field Service: generate recurring orders</field>
<field name="model_id" ref="model_fsm_recurring" />
<field name="state">code</field>
<field name="code">model._cron_scheduled_task()</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
</record>
</odoo>
15 changes: 15 additions & 0 deletions fieldservice_recurring/demo/frequency_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<odoo>

<record id="freq_weekdays" model="fsm.frequency">
<field name="name">Weekdays</field>
<field name="interval">1</field>
<field name="interval_type">daily</field>
<field name="use_byweekday" eval="True" />
<field name="mo" eval="True" />
<field name="tu" eval="True" />
<field name="we" eval="True" />
<field name="th" eval="True" />
<field name="fr" eval="True" />
</record>

</odoo>
11 changes: 11 additions & 0 deletions fieldservice_recurring/demo/frequency_set_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<odoo>

<record id="freq_set_weekdays" model="fsm.frequency.set">
<field name="name">Weekdays</field>
<field name="fsm_frequency_ids" eval="[(4, ref('freq_weekdays'))]" />
<field name="schedule_days">14</field>
<field name="buffer_early">1</field>
<field name="buffer_late">1</field>
</record>

</odoo>
12 changes: 12 additions & 0 deletions fieldservice_recurring/demo/recur_template_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<odoo>

<record id="recur_template_weekdays" model="fsm.recurring.template">
<field name="name">Weekdays Template</field>
<field name="description">
This template will create an FSM Recurring Order that will
generate FSM Orders every weekday.
</field>
<field name="fsm_frequency_set_id" eval="ref('freq_set_weekdays')" />
</record>

</odoo>
Loading