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
114 changes: 114 additions & 0 deletions maintenance_equipment_certification/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
===================================
Maintenance equipment certification
===================================

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

.. |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%2Fmaintenance-lightgray.png?logo=github
:target: https://github.com/OCA/maintenance/tree/18.0/maintenance_equipment_certification
:alt: OCA/maintenance
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/maintenance-18-0/maintenance-18-0-maintenance_equipment_certification
: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/maintenance&target_branch=18.0
:alt: Try me on Runboat

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

Allows you to store a record of the certifications associated with a
piece of equipment.

Additionally, a daily cron job can notify responsible users when
certificates are about to expire. Notifications are sent via email. You
can configure reminder rules to control how many days before expiration
each notification is sent, and enable or disable the feature from
**Settings > Maintenance**.

**Table of contents**

.. contents::
:local:

Usage
=====

- Got to **Maintenance > Equipment** menu.
- Open any equipment.
- You will see a Certifications tab.

To configure expiration notifications:

- Go to **Settings > Maintenance > Certification** and enable
**Expiration Alert**: **Configure Reminder Rules** link is shown to
define how many days before expiration each reminder is sent. They are
also accessible in **Maintenance > Configuration > Certificate
Reminder Rules**.
- The daily cron job **Maintenance: Notify Expiring Certificates** will
send email notifications to the assigned technician or owner.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/maintenance/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/maintenance/issues/new?body=module:%20maintenance_equipment_certification%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
-------

* Trey (www.trey.es)

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

- `Trey <https://www.trey.es>`__:

- Vicent Cubells <vicent@trey.es>

- `ForgeFlow <https://www.forgeflow.com>`__:

- Jasmin Solanki

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

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

|maintainer-cubells|

This module is part of the `OCA/maintenance <https://github.com/OCA/maintenance/tree/18.0/maintenance_equipment_certification>`_ 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 maintenance_equipment_certification/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
24 changes: 24 additions & 0 deletions maintenance_equipment_certification/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2025 Trey, Kilobytes de Soluciones - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Maintenance equipment certification",
"summary": "Add to store certifications associated with a equipment.",
"category": "Human Resources",
"version": "18.0.1.0.0",
"author": "Trey (www.trey.es), Odoo Community Association (OCA)",
"website": "https://github.com/OCA/maintenance",
"maintainers": ["cubells"],
"license": "AGPL-3",
"depends": [
"maintenance",
],
"data": [
"security/ir.model.access.csv",
"data/mail_template_data.xml",
"data/ir_cron_data.xml",
"views/maintenance_equipment_views.xml",
"views/maintenance_equipment_certificate_views.xml",
"views/certificate_reminder_rule_views.xml",
"views/res_config_settings_views.xml",
],
}
11 changes: 11 additions & 0 deletions maintenance_equipment_certification/data/ir_cron_data.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">
<record id="ir_cron_notify_expiring_certificates" model="ir.cron">
<field name="name">Maintenance: Notify Expiring Certificates</field>
<field name="model_id" ref="model_maintenance_equipment_certificate" />
<field name="state">code</field>
<field name="code">model._cron_notify_expiring_certificates()</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
</record>
</odoo>
46 changes: 46 additions & 0 deletions maintenance_equipment_certification/data/mail_template_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="mail_template_certificate_expiration" model="mail.template">
<field name="name">Certificate Expiration Reminder</field>
<field name="model_id" ref="model_maintenance_equipment_certificate" />
<field
name="subject"
>Certificate Expiring: {{ object.name }} – {{ object.equipment_id.name }}</field>
<field
name="partner_to"
>{{ (object.equipment_id.technician_user_id or object.equipment_id.owner_user_id).partner_id.id }}</field>
<field name="description">
Sent automatically when a certificate is approaching its renewal date.
</field>
<field name="body_html" type="html">
<div>
<t
t-set="user"
t-value="object.equipment_id.technician_user_id or object.equipment_id.owner_user_id"
/>
Dear <t t-out="user.name or 'Team'">Team</t>,
<br /><br />
The following certificate is approaching its expiration date
and requires your attention:
<br /><br />
<strong>Certificate:</strong>
<t t-out="object.name or ''">Certificate name</t>
<br />
<t t-if="object.certificate_number">
<strong>Number:</strong>
<t t-out="object.certificate_number">CERT-001</t>
<br />
</t>
<strong>Equipment:</strong>
<t t-out="object.equipment_id.name or ''">Equipment name</t>
<br />
<strong>Renewal Date:</strong>
<t t-out="format_date(object.renewal_date)">2026-12-31</t>
<br /><br />
Please take the necessary steps to renew this certificate
before it expires.
</div>
</field>
<field name="auto_delete" eval="True" />
</record>
</odoo>
Loading
Loading