mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Initial commit maintenance_notebook for 11.0
This commit is contained in:
1
maintenance_notebook/__init__.py
Normal file
1
maintenance_notebook/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
22
maintenance_notebook/__manifest__.py
Normal file
22
maintenance_notebook/__manifest__.py
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
'name': 'Maintenance Notebook',
|
||||
'version': '11.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,
|
||||
}
|
||||
13
maintenance_notebook/views/maintenance_views.xml
Normal file
13
maintenance_notebook/views/maintenance_views.xml
Normal 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>
|
||||
Reference in New Issue
Block a user