Skip to content

Commit

Permalink
Merge pull request #95 from naousse/9.0-mgmtsystem_manuals
Browse files Browse the repository at this point in the history
[9.0] mgmtsystem_manual
  • Loading branch information
Maxime Chambreuil - http://www.savoirfairelinux.com committed Jan 29, 2016
2 parents 37c2300 + 71c9271 commit 102c1fb
Show file tree
Hide file tree
Showing 20 changed files with 139 additions and 44 deletions.
81 changes: 81 additions & 0 deletions mgmtsystem_manual/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

==========================
Management System - Manual
==========================

This module adds a menu item "Manual" and is a dependency of:
* document_page_environment_manual
* document_page_health_safety_manual
* mgmtsystem_quality.

Installation
============

Makes the Management System Manual available from where we can add templates document

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

No configuration required

Usage
=====

To use this module, you need to:

* go to Management Systems > Documentation > Manuals
* Create a new page base on existing templates or create your own templates.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/118/9.0

Known issues / Roadmap
======================

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/
knowledge/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
knowledge/issues/new?body=module:%20
mgmtsystem_manual%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

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

* Odoo SA <info@odoo.com>
* Savoir-faire Linux <support@savoirfairelinux.com>
* Gervais Naoussi <gervaisnaoussi@gmail.com>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit http://odoo-community.org.

Changelog
---------

v9.0.1.0.0
* we remove the dependance on document_page, because the dependance on document_page_approval is sufficient
* we moved here the manual field from mgmtsystem module
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand All @@ -18,3 +18,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import models
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand All @@ -20,26 +20,19 @@
##############################################################################
{
"name": "Management System - Manual",
"version": "8.0.1.1.0",
"version": "9.0.1.0.0",
"author": "Savoir-faire Linux,Odoo Community Association (OCA)",
"website": "http://www.savoirfairelinux.com",
"license": "AGPL-3",
"category": "Management System",
"description": """
This module adds a menu item "Manual" and is a dependency of:
* document_page_environment_manual
* document_page_health_safety_manual
* mgmtsystem_quality
""",
"depends": [
'document_page_approval',
'mgmtsystem',
],
"data": [
'data/document_page.xml',

'views/document_page.xml',
'data/mgmtsystem_manual.xml',
'views/mgmtsystem_manual.xml',
],
"demo": [],
'installable': False,
'installable': True,
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>

<odoo>
<record model="document.page" id="manuals">
<field name="name">Manuals</field>
<field name="type">category</field>
</record>

</data>
</openerp>
</odoo>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions mgmtsystem_manual/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

from . import mgmtsystem_manual
10 changes: 10 additions & 0 deletions mgmtsystem_manual/models/mgmtsystem_manual.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-

from openerp import models, fields


class MgmtSystemManual(models.Model):

_inherit = 'mgmtsystem.system'
_description = 'Manual'
manual = fields.Many2one('document.page', string='Manual')
36 changes: 36 additions & 0 deletions mgmtsystem_manual/views/mgmtsystem_manual.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record model="ir.ui.view" id="system_form_manual">
<field name="name">mgmtsystem_system_form_manual</field>
<field name="model">mgmtsystem.system</field>
<field name="inherit_id" ref="mgmtsystem.system_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="manual"/>
</field>
</field>
</record>

<record model="ir.ui.view" id="system_tree_manual">
<field name="name">mgmtsystem_system_tree_manual</field>
<field name="model">mgmtsystem.system</field>
<field name="inherit_id" ref="mgmtsystem.system_tree"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="manual"/>
</field>
</field>
</record>
<record model="ir.actions.act_window" id="action_manuals">
<field name="name">Manuals</field>
<field name="res_model">document.page</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="document_page.view_wiki_tree"/>
<field name="search_view_id" ref="document_page.view_wiki_filter"/>
<field name="help">Manuals of your management systems.</field>
<field name="domain" eval="[('parent_id','=',ref('manuals'))]"/>
</record>

<menuitem id="menu_mgmtsystem_manuals_manuals" name="Manuals" action="action_manuals" parent="mgmtsystem.menu_mgmtsystem_manuals" sequence="0" groups="mgmtsystem.group_mgmtsystem_viewer"/>
</odoo>
25 changes: 0 additions & 25 deletions mgmtsystem_manuals/views/document_page.xml

This file was deleted.

0 comments on commit 102c1fb

Please sign in to comment.