Merge branch 'mig/18.0/maintenance_notebook' into '18.0-test'

mig/18.0/maintenance_notebook into 18.0-test

See merge request hibou-io/hibou-odoo/suite!1729
This commit is contained in:
Jared Kipe
2024-10-24 12:50:54 +00:00
4 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
****************************
Hibou - Maintenance Notebook
****************************
Base module that creates tabs used in `maintenance_repair <https://github.com/hibou-io/hibou-odoo-suite/tree/11.0/maintenance_repair>`_ and `maintenance_timesheet <https://github.com/hibou-io/hibou-odoo-suite/tree/11.0/maintenance_timesheet>`_
For more information and add-ons, visit `Hibou.io <https://hibou.io/>`_.
.. image:: https://user-images.githubusercontent.com/15882954/41258483-2666f906-6d85-11e8-9f74-a50aaa6b527b.png
:alt: 'Equipment Detail'
:width: 988
:align: left
=======
License
=======
Please see `LICENSE <https://github.com/hibou-io/hibou-odoo-suite/blob/11.0/LICENSE>`_.
Copyright Hibou Corp. 2018

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,22 @@
{
'name': 'Maintenance Notebook',
'version': '18.0.1.0.0',
'author': 'Hibou Corp. <hello@hibou.io>',
'category': 'Human Resources',
'summary': 'Record time on maintenance requests.',
'description': """
Maintenance Notebook
====================
Adds a 'notebook' XML element to the Maintenance form to add pages in other modules.
""",
'website': 'https://hibou.io/',
'depends': [
'maintenance',
],
'data': [
'views/maintenance_views.xml',
],
'installable': True,
'auto_install': False,
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record model="ir.ui.view" id="hr_equipment_request_view_form_notebook">
<field name="name">equipment.request.form.notebook</field>
<field name="model">maintenance.request</field>
<field name="inherit_id" ref="maintenance.hr_equipment_request_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='description']" position="after">
<notebook/>
</xpath>
</field>
</record>
</odoo>