Skip to content
Merged
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
60 changes: 60 additions & 0 deletions project_task_inspection_dates/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
:target: https://www.gnu.org/licenses/lgpl-3.0.html
:alt: License: LGPL-3

=============================
Project Task Inspection Dates
=============================

Overview
========

The **Project Task Inspection Dates** module adds inspection tracking functionality to the **Project** application in Odoo. It introduces two new fields in project tasks to manage inspection planning.

Features
========

- Adds **Inspection Date** field to project tasks.
- Adds **Next Inspection Date** field to project tasks.
- Displays both fields in a dedicated **Inspection** group within the task form view.

Usage
=====

1. Go to **Project > Tasks**.
2. Open or create a task.
3. Locate the **Inspection** section.
4. Fill in:
- **Inspection Date**: The date the last inspection took place.
- **Next Inspection Date**: The scheduled date for the next inspection.

This helps users to track and plan inspection cycles associated with tasks such as construction, maintenance, or service orders.

Configuration
=============

No special configuration is needed after installing the module.

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

If you find any issues or have suggestions, please report them at:
`https://github.com/avanzosc/project-addons/issues <https://github.com/avanzosc/project-addons/issues>`_

Credits
=======

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

* Ana Juaristi <anajuaristi@avanzosc.es>
* Unai Beristain <unaiberistain@avanzosc.es>

For further information, please contact the contributors.

License
=======

This module is licensed under the LGPL-3 License.

See: https://www.gnu.org/licenses/lgpl-3.0.html
1 change: 1 addition & 0 deletions project_task_inspection_dates/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
12 changes: 12 additions & 0 deletions project_task_inspection_dates/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Project Task Inspection Dates",
"version": "14.0.1.0.0",
"category": "Project",
"author": "Avanzosc",
"website": "https://github.com/avanzosc/project-addons",
"license": "LGPL-3",
"depends": ["project"],
"data": ["views/project_task_view.xml"],
"installable": True,
"application": False,
}
1 change: 1 addition & 0 deletions project_task_inspection_dates/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import project_task
8 changes: 8 additions & 0 deletions project_task_inspection_dates/models/project_task.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from odoo import fields, models


class ProjectTask(models.Model):
_inherit = "project.task"

inspection_date = fields.Date()
next_inspection_date = fields.Date()
16 changes: 16 additions & 0 deletions project_task_inspection_dates/views/project_task_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_task_form2_inherit_inspection" model="ir.ui.view">
<field name="name">project.task.form.inspection.inherit</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2" />
<field name="arch" type="xml">
<field name="task_properties" position="before">
<group string="Inspection">
<field name="inspection_date" />
<field name="next_inspection_date" />
</group>
</field>
</field>
</record>
</odoo>
6 changes: 6 additions & 0 deletions setup/project_task_inspection_dates/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)