-
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from naousse/9.0-mgmtsystem_manuals
[9.0] mgmtsystem_manual
- Loading branch information
Showing
20 changed files
with
139 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
mgmtsystem_manuals/data/document_page.xml → mgmtsystem_manual/data/mgmtsystem_manual.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from . import mgmtsystem_manual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file was deleted.
Oops, something went wrong.