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

[15.0][MIG] fieldservice_recurring #902

Merged
merged 71 commits into from
Nov 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
45504a0
[ADD][11.0] fieldservice_recurring (#179)
brian10048 May 13, 2019
6dd56b8
[FIX] fieldservice_recurring (#209)
brian10048 May 15, 2019
4d3e5ec
[12.0][MIG] fieldservice_recurring
kittiu Jun 27, 2019
9ad1632
Add button-box to recurring order form
hparfr Jul 17, 2019
50dbd41
Add button to navigate from Orders to Recurring Orders
hparfr Aug 20, 2019
8a1fed7
Add missing xml and contributors
hparfr Aug 20, 2019
aa8c17d
Prepare order with duration and categories from template
hparfr Aug 20, 2019
1ef9290
Create all recurring orders at confirmation
hparfr Aug 20, 2019
eb65183
[IMP] UI
brian10048 Aug 21, 2019
aa203f7
[IMP][12.0] fieldservice_recurring
murtuzasaleh Sep 5, 2019
57498ed
Remove customer_id
hparfr Sep 6, 2019
80f80df
[IMP] fieldservice_recurring
max3903 Oct 11, 2019
add8e27
[IMP] fieldservice_vehicle_stock
max3903 Oct 11, 2019
2e8a281
[UPD] Update fieldservice_recurring.pot
oca-travis Nov 14, 2019
1042a28
Added translation using Weblate (Spanish (Chile))
Nov 22, 2019
9e09020
Added translation using Weblate (German)
marylla Nov 22, 2019
31db6ba
Translated using Weblate (German)
marylla Nov 22, 2019
17ef892
Add team_id field in Recurring FS Orders
clementmbr Nov 22, 2019
eb3b212
fieldservice_recurring 12.0.1.1.0
OCA-git-bot Nov 25, 2019
c292cf7
Translated using Weblate (German)
marylla Nov 26, 2019
4bccb71
Translated using Weblate (German)
marylla Nov 26, 2019
d52b341
Translated using Weblate (German)
marylla Nov 26, 2019
bc5ac58
[FIX] fieldservice_recurring: test
brian10048 Dec 9, 2019
762bb44
fieldservice_recurring 12.0.1.1.1
OCA-git-bot Dec 9, 2019
9f0c41b
Translated using Weblate (Spanish (Chile))
Dec 10, 2019
4cc3c24
Translated using Weblate (Spanish (Chile))
Jan 3, 2020
fe93a4f
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 16, 2020
8d2e405
[ADD] Spanish (es) translation
max3903 Jan 16, 2020
dfb6dba
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 5, 2020
b4934ef
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
997d076
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
ecc49bb
[12.0][IMP] fieldservice_recurring
brian10048 Jun 24, 2020
56d6891
fieldservice_recurring 12.0.1.2.0
OCA-git-bot Jun 28, 2020
40bc5b7
Translated using Weblate (Spanish)
brian10048 Jul 14, 2020
e927b8a
[IMP] fieldservice_recurring: black, isort, prettier
brian10048 Jul 18, 2020
744ce1f
[MIG] fieldservice_recurring: Migration to 13.0
brian10048 Jul 18, 2020
4cff7c9
[UPD] README.rst
OCA-git-bot Jul 18, 2020
b845580
[IMP] fieldservice_recurring: black, isort, prettier
brian10048 Jul 20, 2020
e9e72f6
[UPD] Update fieldservice_recurring.pot
oca-travis Jul 20, 2020
c4a18c4
fieldservice_recurring 13.0.1.0.1
OCA-git-bot Jul 20, 2020
c15e54b
Update translation files
oca-transbot Jul 20, 2020
b0edfae
[UPD] Update fieldservice_recurring.pot
oca-travis Jul 29, 2020
9c8b50c
Update translation files
oca-transbot Jul 29, 2020
c751239
Update translation files
oca-transbot Aug 16, 2020
6a7d38a
Added translation using Weblate (Spanish (Argentina))
ibuioli Apr 27, 2021
7863672
Translated using Weblate (Spanish (Argentina))
ibuioli May 30, 2021
1694dd2
Added translation using Weblate (Turkish)
tate11 Jul 10, 2021
0b8141c
Translated using Weblate (Turkish)
tate11 Jul 10, 2021
3bcf7ff
Added translation using Weblate (Italian)
mymage Sep 27, 2021
7a18a17
Translated using Weblate (Italian)
mymage Sep 27, 2021
7a5fb11
Translated using Weblate (Italian)
mymage Sep 29, 2021
f88cda8
[MIG] fieldservice_recurring: Migration to 14.0
brian10048 Nov 30, 2021
6aef75a
[IMP] fieldservice_recurring: Edit orders in form
brian10048 Nov 30, 2021
d4fac95
[IMP] fieldservice_recurring: Add search view
brian10048 Nov 30, 2021
3626d1e
[UPD] Update fieldservice_recurring.pot
oca-travis Dec 13, 2021
48674e5
[UPD] README.rst
OCA-git-bot Dec 13, 2021
2d260a1
fieldservice_recurring: adapt to RFC #735
hparfr Jul 20, 2021
e758d3c
fieldservice_recurring: Fix api.constraint with recordset
hparfr Oct 18, 2021
b97a051
[IMP] fieldservice_recurring: Add demo data
brian10048 Dec 14, 2019
ee12672
[IMP] fieldservice_recurring: black, isort, prettier
hparfr Dec 29, 2021
4f49d6b
Fixed _compute_request_late methods
aleuffre Jun 28, 2021
60b630d
fieldservice_recurring 14.0.1.1.0
OCA-git-bot Dec 29, 2021
e9dd390
fieldservice_recurring 14.0.1.2.0
OCA-git-bot Dec 29, 2021
2d31155
fieldservice_recurring 14.0.1.3.0
OCA-git-bot Dec 31, 2021
54a8691
[UPD] Update fieldservice_recurring.pot
oca-travis Jan 27, 2022
2338b42
[UPD] README.rst
OCA-git-bot Jan 27, 2022
cfa5c05
fieldservice_recurring 14.0.1.4.0
OCA-git-bot Jan 27, 2022
6354490
Update translation files
oca-transbot Jan 27, 2022
fe1293e
Translated using Weblate (Spanish (Argentina))
ibuioli Jan 30, 2022
a1e10ea
[15.0][FIX] Travis
Freni-OSI Feb 8, 2022
afce40f
[15.0][MIG] fieldservice_recurring
Freni-OSI Feb 10, 2022
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
158 changes: 158 additions & 0 deletions fieldservice_recurring/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
===================================
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/14.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-14-0/field-service-14-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/14.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:%2014.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>

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/14.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": "15.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