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

[17.0][MIG] fieldservice_recurring: Migration to 17.0 #1174

Merged
merged 138 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
e377abd
[ADD][11.0] fieldservice_recurring (#179)
brian10048 May 13, 2019
526fa03
[FIX] fieldservice_recurring (#209)
brian10048 May 15, 2019
3d94ac7
[12.0][MIG] fieldservice_recurring
kittiu Jun 27, 2019
f4044de
Add button-box to recurring order form
hparfr Jul 17, 2019
7c52a0b
Add button to navigate from Orders to Recurring Orders
hparfr Aug 20, 2019
27d2936
Add missing xml and contributors
hparfr Aug 20, 2019
cdf884c
Prepare order with duration and categories from template
hparfr Aug 20, 2019
4e57e29
Create all recurring orders at confirmation
hparfr Aug 20, 2019
47d5d21
[IMP] UI
brian10048 Aug 21, 2019
c744dc0
[IMP][12.0] fieldservice_recurring
murtuzasaleh Sep 5, 2019
d50b050
Remove customer_id
hparfr Sep 6, 2019
35c57c0
[IMP] fieldservice_recurring
max3903 Oct 11, 2019
01231c2
[IMP] fieldservice_vehicle_stock
max3903 Oct 11, 2019
7eaa9f5
[UPD] Update fieldservice_recurring.pot
oca-travis Nov 14, 2019
95b6036
Added translation using Weblate (Spanish (Chile))
Nov 22, 2019
3c8bc7d
Added translation using Weblate (German)
marylla Nov 22, 2019
f1e5352
Translated using Weblate (German)
marylla Nov 22, 2019
432bbc3
Add team_id field in Recurring FS Orders
clementmbr Nov 22, 2019
9eda8e3
fieldservice_recurring 12.0.1.1.0
OCA-git-bot Nov 25, 2019
7f153e5
Translated using Weblate (German)
marylla Nov 26, 2019
0ceea8c
Translated using Weblate (German)
marylla Nov 26, 2019
e1b3b4d
Translated using Weblate (German)
marylla Nov 26, 2019
adf2d17
[FIX] fieldservice_recurring: test
brian10048 Dec 9, 2019
6018f9e
fieldservice_recurring 12.0.1.1.1
OCA-git-bot Dec 9, 2019
8d3e74e
Translated using Weblate (Spanish (Chile))
Dec 10, 2019
c607bfb
Translated using Weblate (Spanish (Chile))
Jan 3, 2020
241943b
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 16, 2020
f2b1b75
[ADD] Spanish (es) translation
max3903 Jan 16, 2020
5d39fca
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 5, 2020
1c5d444
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
05a8118
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
ed6a617
[12.0][IMP] fieldservice_recurring
brian10048 Jun 24, 2020
cfb51b4
fieldservice_recurring 12.0.1.2.0
OCA-git-bot Jun 28, 2020
973b3ff
Translated using Weblate (Spanish)
brian10048 Jul 14, 2020
58de615
[IMP] fieldservice_recurring: black, isort, prettier
brian10048 Jul 18, 2020
df71cf6
[MIG] fieldservice_recurring: Migration to 13.0
brian10048 Jul 18, 2020
df54ab9
[UPD] README.rst
OCA-git-bot Jul 18, 2020
490e35a
[IMP] fieldservice_recurring: black, isort, prettier
brian10048 Jul 20, 2020
dacce25
[UPD] Update fieldservice_recurring.pot
oca-travis Jul 20, 2020
9d88bbb
fieldservice_recurring 13.0.1.0.1
OCA-git-bot Jul 20, 2020
1ce08af
Update translation files
oca-transbot Jul 20, 2020
ae577ad
[UPD] Update fieldservice_recurring.pot
oca-travis Jul 29, 2020
1609607
Update translation files
oca-transbot Jul 29, 2020
89ceb0e
Update translation files
oca-transbot Aug 16, 2020
7558698
Added translation using Weblate (Spanish (Argentina))
ibuioli Apr 27, 2021
0fb3b89
Translated using Weblate (Spanish (Argentina))
ibuioli May 30, 2021
8318f49
Added translation using Weblate (Turkish)
tate11 Jul 10, 2021
c850765
Translated using Weblate (Turkish)
tate11 Jul 10, 2021
b139c1c
Added translation using Weblate (Italian)
mymage Sep 27, 2021
05cee3a
Translated using Weblate (Italian)
mymage Sep 27, 2021
ccb0ac8
Translated using Weblate (Italian)
mymage Sep 29, 2021
f92eaa0
[MIG] fieldservice_recurring: Migration to 14.0
brian10048 Nov 30, 2021
8bfbe22
[IMP] fieldservice_recurring: Edit orders in form
brian10048 Nov 30, 2021
e614442
[IMP] fieldservice_recurring: Add search view
brian10048 Nov 30, 2021
8e7d4d6
[UPD] Update fieldservice_recurring.pot
oca-travis Dec 13, 2021
1739a43
[UPD] README.rst
OCA-git-bot Dec 13, 2021
df719a9
fieldservice_recurring: adapt to RFC #735
hparfr Jul 20, 2021
acf16d1
fieldservice_recurring: Fix api.constraint with recordset
hparfr Oct 18, 2021
594fecc
[IMP] fieldservice_recurring: Add demo data
brian10048 Dec 14, 2019
70f30a5
[IMP] fieldservice_recurring: black, isort, prettier
hparfr Dec 29, 2021
aea467b
Fixed _compute_request_late methods
aleuffre Jun 28, 2021
fb49d57
fieldservice_recurring 14.0.1.1.0
OCA-git-bot Dec 29, 2021
6afa1a4
fieldservice_recurring 14.0.1.2.0
OCA-git-bot Dec 29, 2021
d2b5b9a
fieldservice_recurring 14.0.1.3.0
OCA-git-bot Dec 31, 2021
f15aebb
[UPD] Update fieldservice_recurring.pot
oca-travis Jan 27, 2022
565fb75
[UPD] README.rst
OCA-git-bot Jan 27, 2022
72d2e58
fieldservice_recurring 14.0.1.4.0
OCA-git-bot Jan 27, 2022
0dbdfdc
Update translation files
oca-transbot Jan 27, 2022
04de5a8
Translated using Weblate (Spanish (Argentina))
ibuioli Jan 30, 2022
6e3d371
[15.0][FIX] Travis
Freni-OSI Feb 8, 2022
5fe25d3
[15.0][MIG] fieldservice_recurring
Freni-OSI Feb 10, 2022
9b8167f
[UPD] Update fieldservice_recurring.pot
Nov 1, 2022
dad4ed2
[UPD] README.rst
OCA-git-bot Nov 1, 2022
2112125
Update translation files
weblate Nov 1, 2022
2637f59
Translated using Weblate (Italian)
mymage Nov 2, 2022
27022f5
Translated using Weblate (Italian)
mymage Nov 4, 2022
f069905
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 12, 2022
9b3bfea
Translated using Weblate (German)
NICO-SOLUTIONS Dec 3, 2022
2569718
Translated using Weblate (German)
NICO-SOLUTIONS Dec 4, 2022
0ee1026
Translated using Weblate (Italian)
francesco-ooops Dec 29, 2022
446e46c
Translated using Weblate (Italian)
francesco-ooops Dec 30, 2022
933d1b8
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
eaddc9b
Translated using Weblate (Spanish)
macagua Mar 2, 2023
5872fba
Translated using Weblate (Spanish)
macagua Mar 2, 2023
329c4b4
Translated using Weblate (Spanish (Chile))
macagua Mar 2, 2023
33de1d2
Translated using Weblate (Spanish (Chile))
macagua Mar 2, 2023
13dca65
Translated using Weblate (Italian)
francesco-ooops Mar 7, 2023
d1b5a96
Translated using Weblate (Italian)
mymage Mar 30, 2023
2b0fbe0
Translated using Weblate (Italian)
mymage Apr 4, 2023
08fc3fd
Translated using Weblate (Italian)
mymage Apr 5, 2023
11f4a20
Translated using Weblate (Italian)
francesco-ooops Apr 7, 2023
ff45596
Translated using Weblate (Italian)
mymage Apr 12, 2023
21c2723
Translated using Weblate (Italian)
francesco-ooops Apr 26, 2023
792c130
Translated using Weblate (Italian)
francesco-ooops May 12, 2023
bdaa368
Translated using Weblate (Italian)
mymage Jun 14, 2023
840a5d8
Translated using Weblate (Italian)
mymage Jun 15, 2023
0954ebc
Translated using Weblate (Italian)
mymage Jun 16, 2023
b5df5c8
[MIG] fieldservice_recurring: Migration to 16.0
kaynnan Jul 10, 2023
fdf67f4
[UPD] Update fieldservice_recurring.pot
Jul 11, 2023
361b087
[UPD] README.rst
OCA-git-bot Jul 11, 2023
5a15c83
Update translation files
weblate Jul 11, 2023
5e19819
Update translation files
weblate Jul 11, 2023
c552b83
Translated using Weblate (Italian)
mymage Jul 13, 2023
98be8ef
Translated using Weblate (Portuguese (Brazil))
adrianojprado Aug 11, 2023
8cf2e8d
[UPD] README.rst
OCA-git-bot Sep 3, 2023
417667c
[UPD] Update fieldservice_recurring.pot
Sep 3, 2023
46ac685
Update translation files
weblate Sep 3, 2023
28a5d42
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 4, 2023
4f0ce39
Translated using Weblate (Italian)
mymage Sep 4, 2023
0715922
Translated using Weblate (Spanish)
Ivorra78 Sep 5, 2023
3b38924
Translated using Weblate (Spanish)
Ivorra78 Sep 20, 2023
864c15a
[UPD] Update fieldservice_recurring.pot
Oct 28, 2023
30a21de
[BOT] post-merge updates
OCA-git-bot Oct 28, 2023
0b7cb30
Update translation files
weblate Oct 29, 2023
ea286b3
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 30, 2023
7fe7423
[FIX] fieldservice_recurring: Use timezone aware rrule and normalize …
paradoxxxzero Mar 15, 2022
9e0b556
Orders are created from a frequency
hparfr Apr 8, 2022
5421ea8
[FIX] fieldservice_recurring: Fix missing timezone when context->tz i…
paradoxxxzero Jun 2, 2022
3b17185
fsm_recurring: add team_id in tree / filter
hparfr Jun 17, 2022
3b408f8
[FIX] fieldservice_recurring: adapt access to ir.actions.* records
brian10048 Jun 17, 2022
e6d4bc9
[FIX] fieldservice_recurring: Default company
paradoxxxzero Sep 21, 2022
ac058b7
[IMP] fieldservice_recurring: Use location_id tz
paradoxxxzero Oct 3, 2022
b153e01
fieldservice_recurring: add recurring in team's dashboard
hparfr Jun 17, 2022
a1b831c
[14.0][ADD] Equipment field to the `fsm.recurring` model
BojanOD Nov 25, 2022
0816235
[14.0][FIX]fieldservice_recurring: fix security for group_fsm_user_own
aleuffre Jan 4, 2023
47858cc
fieldservice_recurring: fix default team
hparfr Aug 24, 2023
2e3d840
fieldservice_recurring: refactore stages
hparfr Apr 8, 2022
ca57251
[IMP] fieldservice_recurring: groups attribute v16
brian10048 Nov 13, 2023
2e155aa
[IMP] fieldservice_recurring: tests
brian10048 Nov 13, 2023
f403165
Translated using Weblate (Italian)
mymage Nov 17, 2023
fb5dc7d
[UPD] Update fieldservice_recurring.pot
Dec 12, 2023
b1918cf
[BOT] post-merge updates
OCA-git-bot Dec 12, 2023
29f01eb
Update translation files
weblate Dec 12, 2023
4e88cf8
Translated using Weblate (Spanish)
Ivorra78 Dec 13, 2023
74e66fa
Translated using Weblate (Italian)
mymage Dec 19, 2023
9746855
Translated using Weblate (Spanish (Argentina))
ibuioli Jan 20, 2024
c359378
[IMP] fieldservice_recurring: pre-commit auto fixes
peluko00 Apr 16, 2024
ea962dd
[MIG] fieldservice_recurring: Migration to 17.0
peluko00 Apr 16, 2024
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
170 changes: 170 additions & 0 deletions fieldservice_recurring/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
===================================
Field Service Recurring Work Orders
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f9202915f32e13af1b09c720ef29cf9add706abc5070ecd62d688d57a881e5f0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/field-service-17-0-fieldservice_recurring
: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
:alt: Try me on Runboat

|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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_recurring%0Aversion:%2017.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 <brian@mcmpest.com>
- Kitti Upariphutthiphone <kittiu@ecosoft.co.th>
- Raphaël Reverdy <raphael.reverdy@akretion.com>
- Freni Patel <fpatel@opensourceintegrators.com>
- `APSL <https://apsl.tech>`__:

- Antoni Marroig <amarroig@apsl.net>

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/17.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
35 changes: 35 additions & 0 deletions fieldservice_recurring/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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": "17.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",
"views/fsm_team.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
Loading