Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
103 changes: 103 additions & 0 deletions fieldservice_equipment_calibration/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
=====================================
Field Service - Equipment Calibration
=====================================

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

.. |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/18.0/fieldservice_equipment_calibration
: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-18-0/field-service-18-0-fieldservice_equipment_calibration
: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=18.0
:alt: Try me on Runboat

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

Track calibration certificates of your field service equipments.

Each certificate records a validity period (initial and expiration
dates), an attached certificate file and free-form notes, with full
chatter/activity tracking. Certificates are listed on a **Calibration**
tab of the equipment form and under *Field Service > Master Data >
Calibration Certificates*.

Archiving a certificate (e.g. when superseded by a new calibration)
keeps it available for traceability without cluttering the active list.

**Table of contents**

.. contents::
:local:

Usage
=====

1. Open an equipment (*Field Service > Master Data > Equipments*).
2. On the **Calibration** tab, add a certificate with its validity dates
and attach the certificate file.
3. Follow expirations from *Field Service > Master Data > Calibration
Certificates* (filter or group by expiration date).

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_equipment_calibration%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.

Credits
=======

Authors
-------

* Pop Solutions

Contributors
------------

- Rafnix Guzman <rafnixg@gmail.com>
- Marcos Mendez <m@pop.coop>

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-marcos-mendez| image:: https://github.com/marcos-mendez.png?size=40px
:target: https://github.com/marcos-mendez
:alt: marcos-mendez

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

|maintainer-marcos-mendez|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions fieldservice_equipment_calibration/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions fieldservice_equipment_calibration/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2022 Rafnix Guzman
# Copyright (C) 2026 Pop Solutions
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Field Service - Equipment Calibration",
"summary": "Track calibration certificates of field service equipments",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"website": "https://github.com/OCA/field-service",
"category": "Field Service",
"author": "Pop Solutions, Odoo Community Association (OCA)",
"maintainers": ["marcos-mendez"],
"depends": ["fieldservice"],
"data": [
"security/ir.model.access.csv",
"views/fsm_calibration_certificate_views.xml",
"views/fsm_equipment_views.xml",
],
}
2 changes: 2 additions & 0 deletions fieldservice_equipment_calibration/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import fsm_calibration_certificate
from . import fsm_equipment
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2022 Rafnix Guzman
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class FsmCalibrationCertificate(models.Model):
_name = "fsm.calibration.certificate"
_description = "Calibration Certificate"
_inherit = ["mail.thread", "mail.activity.mixin"]

name = fields.Char(required=True, tracking=True)
initial_date = fields.Date(tracking=True)
expiration_date = fields.Date(tracking=True)
notes = fields.Text()
fsm_equipment_id = fields.Many2one(
"fsm.equipment", string="Equipment", tracking=True
)
certificate_file = fields.Binary(tracking=True, attachment=True)
active = fields.Boolean(default=True, tracking=True)
14 changes: 14 additions & 0 deletions fieldservice_equipment_calibration/models/fsm_equipment.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (C) 2022 Rafnix Guzman
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class FsmEquipment(models.Model):
_inherit = "fsm.equipment"

fsm_calibration_certificate_ids = fields.One2many(
"fsm.calibration.certificate",
"fsm_equipment_id",
string="Calibration Certificates",
)
3 changes: 3 additions & 0 deletions fieldservice_equipment_calibration/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions fieldservice_equipment_calibration/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Rafnix Guzman \<rafnixg@gmail.com\>
- Marcos Mendez \<m@pop.coop\>
9 changes: 9 additions & 0 deletions fieldservice_equipment_calibration/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Track calibration certificates of your field service equipments.

Each certificate records a validity period (initial and expiration dates), an
attached certificate file and free-form notes, with full chatter/activity
tracking. Certificates are listed on a **Calibration** tab of the equipment
form and under *Field Service > Master Data > Calibration Certificates*.

Archiving a certificate (e.g. when superseded by a new calibration) keeps it
available for traceability without cluttering the active list.
5 changes: 5 additions & 0 deletions fieldservice_equipment_calibration/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1. Open an equipment (*Field Service > Master Data > Equipments*).
2. On the **Calibration** tab, add a certificate with its validity dates and
attach the certificate file.
3. Follow expirations from *Field Service > Master Data > Calibration
Certificates* (filter or group by expiration date).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_fsm_calibration_certificate_fsm_user,fsm.calibration.certificate fsm user,model_fsm_calibration_certificate,fieldservice.group_fsm_user_own,1,0,0,0
access_fsm_calibration_certificate_fsm_manager,fsm.calibration.certificate fsm manager,model_fsm_calibration_certificate,fieldservice.group_fsm_manager,1,1,1,1
Loading
Loading