-
Notifications
You must be signed in to change notification settings - Fork 242
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_agreement: Migration to 17.0 #1210
Closed
Closed
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
8d1d188
[11.0][ADD] fieldservice_agreement module
87e0283
[IMP] Various improvements
max3903 f587ffc
[ADD] fieldservice_skill
776244f
11.0 imp fieldservice_agreement (#76)
3a7bbe0
[IMP] Icon
max3903 e1ca24d
[IMP] Show stat and improve filter
max3903 d4429a0
[IMP] Filtering
max3903 70799a5
[IMP] fieldservice_agreement
max3903 35c3c67
[ADD] Merge fieldservice_equipment_agreement
max3903 b5e70d2
[IMP] Change Kanban Date
osi-scampbell f6b8526
[FIX]1. message_follower_ids needs to be inherited in object first 2.…
8b8f05f
[IMP] Fieldservice Account Bug Fix
osi-scampbell cce76ab
[MIG][WIP][12.0] fieldservice_agreement
murtuzasaleh e1fba64
[IMP] #118 Agreement Filter Location
osi-scampbell 639bf66
[IMP] #115 Worker Agreement Smart Button
osi-scampbell 9361666
[IMP] fieldservice_agreement
max3903 8da579e
[FIX] fieldservice_agreement (#232)
osi-scampbell 7a8f89d
[FIX] fieldservice_agreement: FSM Location Agreement Bug (#237)
osi-scampbell 8b4293b
[12.0][IMP] fieldservice_agreement, add unit test
kittiu 9f7d22f
[IMP] Filter Out Templates
osi-scampbell 1d682ad
[FIX] fieldservice_agreement
max3903 6f2147a
[FIX] fieldservice_agreement
max3903 9268dbd
[FIX] fieldservice_agreement
max3903 cf1e8fe
[IMP] Improved Test Cases
osi-scampbell cb20656
[14.0][MIG] fieldservice_agreement (Version 12.0 to 14.0)
patrickrwilson 6700f3f
[UPD] Update fieldservice_agreement.pot
oca-travis 5ec4757
[UPD] README.rst
OCA-git-bot cdf81d9
Fix pre-commit
hparfr 42b575e
fieldservice_agreement 14.0.1.1.0
OCA-git-bot 60ee4c1
[FIX] fieldservice_agreement: adapt access to ir.actions.* records
brian10048 2815fea
fieldservice_agreement 14.0.1.1.1
OCA-git-bot 96b6f05
Added translation using Weblate (Italian)
mymage efb649e
Translated using Weblate (Italian)
mymage d65c267
[UPD] README.rst
OCA-git-bot a3428e3
Update translation files
weblate 95e276b
Translated using Weblate (Spanish (Argentina))
ibuioli 6355b0b
[MIG] fieldservice_agreement: Migration to 16.0
szekawong c604619
[IMP] fieldservice_agreement: pre-commit auto fixes
5983135
[17.0][MIG] fieldservice_agreement: Migration to 17.0
90e4561
[17.0[ADD] fieldservice_agreement_serviceprofile
4dc8a54
Add dependency file for tests purposes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
========================================== | ||
Field Service - Agreements Service Profile | ||
========================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:816250d8ffb8cfea7c4b4b6dba339375ea9264b6ff922a6c0d346939ffe04116 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
.. |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_agreement_serviceprofile | ||
: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_agreement_serviceprofile | ||
: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| | ||
|
||
Glue module for Field Service Agreement and Service Profile | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
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_agreement_serviceprofile%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 | ||
------- | ||
|
||
* Open Source Integrators | ||
|
||
Contributors | ||
------------ | ||
|
||
- Bhavesh Odedra <[email protected]> | ||
- Sandip Mangukiya <[email protected]> | ||
- Serpent Consulting Services Pvt. Ltd. <[email protected]> | ||
- Patrick Wilson <[email protected]> | ||
- Italo LOPES <[email protected]> | ||
|
||
Other credits | ||
------------- | ||
|
||
The development of this module has been financially supported by: | ||
|
||
- Open Source Integrators | ||
|
||
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-max3903| image:: https://github.com/max3903.png?size=40px | ||
:target: https://github.com/max3903 | ||
:alt: max3903 | ||
.. |maintainer-bodedra| image:: https://github.com/bodedra.png?size=40px | ||
:target: https://github.com/bodedra | ||
:alt: bodedra | ||
.. |maintainer-smangukiya| image:: https://github.com/smangukiya.png?size=40px | ||
:target: https://github.com/smangukiya | ||
:alt: smangukiya | ||
.. |maintainer-osi-scampbell| image:: https://github.com/osi-scampbell.png?size=40px | ||
:target: https://github.com/osi-scampbell | ||
:alt: osi-scampbell | ||
.. |maintainer-patrickrwilson| image:: https://github.com/patrickrwilson.png?size=40px | ||
:target: https://github.com/patrickrwilson | ||
:alt: patrickrwilson | ||
|
||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-max3903| |maintainer-bodedra| |maintainer-smangukiya| |maintainer-osi-scampbell| |maintainer-patrickrwilson| | ||
|
||
This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/17.0/fieldservice_agreement_serviceprofile>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright (C) 2018 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright (C) 2018 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Field Service - Agreements Service Profile", | ||
"summary": "Manage Field Service agreements and contracts", | ||
"author": "Open Source Integrators, " "Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/field-service", | ||
"category": "Field Service", | ||
"license": "AGPL-3", | ||
"version": "17.0.1.0.0", | ||
"depends": [ | ||
"agreement_serviceprofile", | ||
"fieldservice_agreement", | ||
], | ||
"data": [ | ||
"views/fsm_order_view.xml", | ||
"views/fsm_equipment_view.xml", | ||
"views/fsm_location.xml", | ||
], | ||
"installable": True, | ||
"development_status": "Beta", | ||
"maintainers": [ | ||
"max3903", | ||
"bodedra", | ||
"smangukiya", | ||
"osi-scampbell", | ||
"patrickrwilson", | ||
], | ||
} |
29 changes: 29 additions & 0 deletions
29
fieldservice_agreement_serviceprofile/i18n/fieldservice_agreement_serviceprofile.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * fieldservice_agreement_serviceprofile | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 17.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
|
||
#. module: fieldservice_agreement_serviceprofile | ||
#: model:ir.model.fields,field_description:fieldservice_agreement_serviceprofile.field_fsm_equipment__serviceprofile_id | ||
#: model:ir.model.fields,field_description:fieldservice_agreement_serviceprofile.field_fsm_order__serviceprofile_id | ||
#: model_terms:ir.ui.view,arch_db:fieldservice_agreement_serviceprofile.fsm_equipment_search_view_agreement | ||
#: model_terms:ir.ui.view,arch_db:fieldservice_agreement_serviceprofile.search_fsm_order_filter_agreement | ||
msgid "Service Profile" | ||
msgstr "" | ||
|
||
#. module: fieldservice_agreement_serviceprofile | ||
#: model:ir.model.fields,field_description:fieldservice_agreement_serviceprofile.field_fsm_location__serviceprofile_ids | ||
#: model_terms:ir.ui.view,arch_db:fieldservice_agreement_serviceprofile.fsm_location_agreement_serviceprofile | ||
msgid "Service Profiles" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import fsm_equipment | ||
from . import fsm_location | ||
from . import fsm_order |
10 changes: 10 additions & 0 deletions
10
fieldservice_agreement_serviceprofile/models/fsm_equipment.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (C) 2018 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class FSMEquipment(models.Model): | ||
_inherit = "fsm.equipment" | ||
|
||
serviceprofile_id = fields.Many2one("agreement.serviceprofile", "Service Profile") |
29 changes: 29 additions & 0 deletions
29
fieldservice_agreement_serviceprofile/models/fsm_location.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright (C) 2018 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class FSMLocation(models.Model): | ||
_inherit = "fsm.location" | ||
|
||
serviceprofile_ids = fields.Many2many( | ||
"agreement.serviceprofile", | ||
string="Service Profiles", | ||
compute="_compute_service_ids", | ||
) | ||
|
||
def _compute_service_ids(self): | ||
for loc in self: | ||
agreements = self.env["agreement"].search( | ||
[("fsm_location_id", "=", loc.id)] | ||
) | ||
ids = [] | ||
for agree in agreements: | ||
servpros = self.env["agreement.serviceprofile"].search( | ||
[("agreement_id", "=", agree.id)] | ||
) | ||
for ser in servpros: | ||
if ser.id not in ids: | ||
ids.append(ser.id) | ||
loc.serviceprofile_ids = ids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (C) 2018 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class FSMOrder(models.Model): | ||
_inherit = "fsm.order" | ||
|
||
serviceprofile_id = fields.Many2one("agreement.serviceprofile", "Service Profile") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- Bhavesh Odedra \<<[email protected]>\> | ||
- Sandip Mangukiya \<<[email protected]>\> | ||
- Serpent Consulting Services Pvt. Ltd. \<<[email protected]>\> | ||
- Patrick Wilson \<<[email protected]>\> | ||
- Italo LOPES \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The development of this module has been financially supported by: | ||
|
||
- Open Source Integrators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Glue module for Field Service Agreement and Service Profile |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.