From bbfcdf8e8edab5a7ba5a2e607ca2b4f3ba4211ff Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Tue, 30 Oct 2012 16:41:04 -0400 Subject: [PATCH 01/26] [REN] wiki_* to document_page_* --- .../__init__.py | 21 ++++++++++ .../__openerp__.py | 38 ++++++++++++++++++ .../document_page_health_safety_manual.xml | 15 +++++++ .../static/src/img/icon.png | Bin 0 -> 2397 bytes 4 files changed, 74 insertions(+) create mode 100644 document_page_health_safety_manual/__init__.py create mode 100644 document_page_health_safety_manual/__openerp__.py create mode 100644 document_page_health_safety_manual/document_page_health_safety_manual.xml create mode 100644 document_page_health_safety_manual/static/src/img/icon.png diff --git a/document_page_health_safety_manual/__init__.py b/document_page_health_safety_manual/__init__.py new file mode 100644 index 000000000000..04c325fa2de7 --- /dev/null +++ b/document_page_health_safety_manual/__init__.py @@ -0,0 +1,21 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2010 Savoir-faire Linux (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py new file mode 100644 index 000000000000..c3e0e805101f --- /dev/null +++ b/document_page_health_safety_manual/__openerp__.py @@ -0,0 +1,38 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2010 Savoir-faire Linux (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## +{ + "name" : "Health and Safety Manual", + "version" : "0.1", + "author" : "Savoir-faire Linux", + "website" : "http://www.savoirfairelinux.com", + "license" : "AGPL-3", + "category" : "Generic Modules/Others", + "description": """Health and Safety Manual Template + """, + "depends" : ['document_page','mgmtsystem_manuals'], + "init_xml" : [], + "update_xml" : ['document_page_health_safety_manual.xml'], + "demo_xml" : [], + "installable" : True, + "certificate" : '' +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + diff --git a/document_page_health_safety_manual/document_page_health_safety_manual.xml b/document_page_health_safety_manual/document_page_health_safety_manual.xml new file mode 100644 index 000000000000..55abd78d2e5a --- /dev/null +++ b/document_page_health_safety_manual/document_page_health_safety_manual.xml @@ -0,0 +1,15 @@ + + + + + + Health and Safety Manual + + content + +TODO: Add the structure of the health and safety manual from the OHSAS 18001 standard. + + + + + diff --git a/document_page_health_safety_manual/static/src/img/icon.png b/document_page_health_safety_manual/static/src/img/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..cb1620bf203f19668872eb9c7620a8b950765cb2 GIT binary patch literal 2397 zcmaJ@dpHwp8z1`Skkh0vbJ#^8a)_}oWKJ_Ajp#)V8FJ3ybxzE37?S2NQ#q}aQ)#A< z5EbKTGHdhYwauKT*~>-YSgJKNdGR!jse0ssKSP zJiPYXgn+y=l10SufG^s`))LUjfGqJYKtHst72xpqe%Se_i02WGwDX7t0FEB}ZF~R{ zS(fJ%j6peC3r>lOOUp=%IaWjh075e;tMi!nDK5$Ymb&9t?RunW>!F&I-t`*(L1RW6rauQh*IaW} z%Lb%id#BHLb4w!QU6IA&FhRdJ-uy6KK9YGO6s>BCbL`S#yZG0R4yu5tf zfn*^3Jb3!W6Xr_dSzfXYLG~67cVulh84n)4z+$oN!o#)OEmZZa( zx}c-W0_H21%$+u6?v<4IPrQnS-}ovd00?A|m#C}#dGaWGd$_5o=~^dOt%)!UH9CQ1 zFm|@l?~F}MpoMk=V|AB)-aVP9^uo{IpH5@W;&UHK0Om?YwMB_jzDvC?)e~rsWBVQ79<4=Z+t*rdkP(Np&kLO!k;D5RA1FvfF#GCmt_C=q zMT&@sNSa;BL+{@mnVl8iP6OalHbFHVWjce9-382APpZ`4^V{pc28rO#>B*PTYHnFt z-X4t&4Gn)S5M>yoiHE7%9Iw0O<+-b?p{B_@lDsy7_N{eNOSVSS==7s{@MSpQ&C7Vr z{-E_LdS72AeP~D}I5=2cOAA+Bts<0Qc58X}sY{)16w7LCYa-A1-28`1aw|5)5+Zt|JGac;miXJ%*Eb*qSShlHTebXS)Y_i`W%sp^%-O{kXn<%%ga6YU+ep%HF-1n0vksLz2gA5G|JG!4}Fd|c=cERT2#X^RESrP+sPWvXd);CFCEGwAX63BEXmi)k4 zs!K1MiZ`Lx>tTk5hLpg8fkG9SyZ(DyESACmZW0KhXX94g-AH}g`fuFyl|_X`MA8>) z4dSZG^z7{HK6r@I>GYk6c>y;PhZDZDw@11U1%W^gD3ox>%w3%(pS{hc`j(ois&r`? znXV6+INTkP!u=ft=6IOm+vfp8n-gZhPbG_si`J)BFq zE+$l6jTqbUEYc1=@8KcmKZ?H=7+9ovxzT5`BfepIiE*gec(qHMdPNM49+G*No0BtV za#Q$qi^#_(zs%M1eR^=hSp@|~VMu_ovT_eU!i&rH(?#|dC^6gG+k2mEYF3QXHB3bH_1QYX zpQ@|ZHaBr*hA>&jl5u2EkovlNo4Dt#f~}`($BQl=uQ_Os;D(q)t+V=!Hufa}ykyl} zaqqDw`QIW~QQTPsggPFcv#kC3NFC;SbDUnzg{i^8!P0t(z#!M#nA790+HcUaZBQsw zDRjE$vDx0{`Z~0*u&_-(wbEv9!{o%9{(j)QRBAdgocu}=sr}E)!!lot+-Qco7Pis5 zGv~=zP~K*$iIYXGi*M>e_pdKU7KP&+z9sarn+o1YT5*e{Q!uBGZ!ZrDy)cgd2~7 zJq(8U%*>3swzlEkio%^kou`6j4mKnb>BHpY4r^LmUS59k(dL~d-_tA^>Lij# z_N`&l`2B6J#NR704RIwihak=WH#__{=I8TEFeOVBO=u8E=FL6;l(mypqoq&!zg1#- A`~Uy| literal 0 HcmV?d00001 From 1304d2d994433f6eab933471c0ad7bc807a0c46f Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Tue, 6 Aug 2013 12:22:21 -0400 Subject: [PATCH 02/26] [UPG] module manifest and views to v7 format --- document_page_health_safety_manual/__openerp__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index c3e0e805101f..270b6617b42c 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -27,10 +27,9 @@ "category" : "Generic Modules/Others", "description": """Health and Safety Manual Template """, - "depends" : ['document_page','mgmtsystem_manuals'], - "init_xml" : [], - "update_xml" : ['document_page_health_safety_manual.xml'], - "demo_xml" : [], + "depends" : ['mgmtsystem_manuals'], + "data" : ['document_page_health_safety_manual.xml'], + "demo" : [], "installable" : True, "certificate" : '' } From c1924ae04e2cc67c87d6625853886940e9e99e1d Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 29 Aug 2013 15:45:45 -0400 Subject: [PATCH 03/26] [FIX] PEP8 compliance after running flake8 --- .../__openerp__.py | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index 270b6617b42c..4064b2d4fff8 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2010 Savoir-faire Linux (). # @@ -15,23 +15,22 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## { - "name" : "Health and Safety Manual", - "version" : "0.1", - "author" : "Savoir-faire Linux", - "website" : "http://www.savoirfairelinux.com", - "license" : "AGPL-3", - "category" : "Generic Modules/Others", + "name": "Document Management - Wiki - Health and Safety Manual", + "version": "1.0", + "author": "Savoir-faire Linux", + "website": "http://www.savoirfairelinux.com", + "license": "AGPL-3", + "category": "Generic Modules/Others", "description": """Health and Safety Manual Template """, - "depends" : ['mgmtsystem_manuals'], - "data" : ['document_page_health_safety_manual.xml'], - "demo" : [], - "installable" : True, - "certificate" : '' + "depends": ['mgmtsystem_manuals'], + "data": ['document_page_health_safety_manual.xml'], + "demo": [], + "installable": True, + "certificate": '' } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - From aaa891832b93ab23b9b35944ff7524c4f3700d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Faure-Lacroix?= Date: Wed, 19 Nov 2014 10:32:30 +0300 Subject: [PATCH 04/26] Moved module document_page_health_safety_manual to root for port --- .../__init__.py | 4 ++ .../__openerp__.py | 10 +-- .../migrations/7.0.1.0/post-migration.py | 66 +++++++++++++++++++ 3 files changed, 75 insertions(+), 5 deletions(-) create mode 100644 document_page_health_safety_manual/migrations/7.0.1.0/post-migration.py diff --git a/document_page_health_safety_manual/__init__.py b/document_page_health_safety_manual/__init__.py index 04c325fa2de7..d299a68286f8 100644 --- a/document_page_health_safety_manual/__init__.py +++ b/document_page_health_safety_manual/__init__.py @@ -1,4 +1,5 @@ # -*- encoding: utf-8 -*- +<<<<<<< HEAD ############################################################################## # # OpenERP, Open Source Management Solution @@ -18,4 +19,7 @@ # along with this program. If not, see . # ############################################################################## +======= + +>>>>>>> Moved module document_page_health_safety_manual to root for port # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index 4064b2d4fff8..11c906adf518 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -5,23 +5,23 @@ # Copyright (C) 2010 Savoir-faire Linux (). # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as +# it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License +# You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # ############################################################################## { "name": "Document Management - Wiki - Health and Safety Manual", "version": "1.0", - "author": "Savoir-faire Linux", + "author": "Savoir-faire Linux,Odoo Community Association (OCA)", "website": "http://www.savoirfairelinux.com", "license": "AGPL-3", "category": "Generic Modules/Others", @@ -30,7 +30,7 @@ "depends": ['mgmtsystem_manuals'], "data": ['document_page_health_safety_manual.xml'], "demo": [], - "installable": True, + 'installable': False, "certificate": '' } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/document_page_health_safety_manual/migrations/7.0.1.0/post-migration.py b/document_page_health_safety_manual/migrations/7.0.1.0/post-migration.py new file mode 100644 index 000000000000..b494aa275f8c --- /dev/null +++ b/document_page_health_safety_manual/migrations/7.0.1.0/post-migration.py @@ -0,0 +1,66 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Savoir-faire Linux +# (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +import logging +logger = logging.getLogger('upgrade') +logger.setLevel(logging.DEBUG) + +xmlid_renames = [ + ('document_page_health_safety_manual.wiki_health_safety_manual', + 'document_page_health_safety_manual.document_page_health_safety_manual'), +] + + +def logged_query(cr, query, args=None): + """ + Logs query and affected rows at level DEBUG + """ + if args is None: + args = [] + cr.execute(query, args) + logger.debug('Running %s', query % tuple(args)) + logger.debug('%s rows affected', cr.rowcount) + return cr.rowcount + + +def rename_xmlids(cr, xmlids_spec): + """ + Rename XML IDs. Typically called in the pre script. + One usage example is when an ID changes module. In OpenERP 6 for example, + a number of res_groups IDs moved to module base from other modules ( + although they were still being defined in their respective module). + """ + for (old, new) in xmlids_spec: + if not old.split('.') or not new.split('.'): + logger.error( + 'Cannot rename XMLID %s to %s: need the module ' + 'reference to be specified in the IDs' % (old, new)) + else: + query = ("UPDATE ir_model_data SET module = %s, name = %s " + "WHERE module = %s and name = %s") + logged_query(cr, query, tuple(new.split('.') + old.split('.'))) + + +def migrate(cr, version): + if version is None: + return + rename_xmlids(cr, xmlid_renames) From a000b860260fb441442ebf8f8ae9cae24511d3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Faure-Lacroix?= Date: Wed, 19 Nov 2014 10:34:01 +0300 Subject: [PATCH 05/26] Making module installable is enough nothing to port --- document_page_health_safety_manual/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index 11c906adf518..2154b17e58a0 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -30,7 +30,7 @@ "depends": ['mgmtsystem_manuals'], "data": ['document_page_health_safety_manual.xml'], "demo": [], - 'installable': False, + 'installable': True, "certificate": '' } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: From 2a24260c0bb6fd19f173597460237264ef7ffaa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Faure-Lacroix?= Date: Tue, 24 Mar 2015 22:43:39 +0300 Subject: [PATCH 06/26] Add README.rst and move icon.png to description --- document_page_health_safety_manual/README.rst | 58 ++++++++++++++++++ .../__init__.py | 14 ++--- .../__openerp__.py | 4 -- .../static/{src/img => description}/icon.png | Bin 4 files changed, 62 insertions(+), 14 deletions(-) create mode 100644 document_page_health_safety_manual/README.rst rename document_page_health_safety_manual/static/{src/img => description}/icon.png (100%) diff --git a/document_page_health_safety_manual/README.rst b/document_page_health_safety_manual/README.rst new file mode 100644 index 000000000000..9e01e3389c62 --- /dev/null +++ b/document_page_health_safety_manual/README.rst @@ -0,0 +1,58 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License + +Health and Safety Manual Template +================================= + +This module was written to extend the functionality of +management-system. Add a new document template for health +and safety manual. + +Installation +============ + +To install this module, you need to: + + * Clone the project from git@github.com:OCA/knowledge.git + * Clone the project from git@github.com:OCA/management-system.git + * Add both projects to the addons path + +Configuration +============= + +To configure this module, you need to: + + * Nothing + +Usage +===== + +For further information, please visit: + + * https://www.odoo.com/forum/help-1 + +Known issues / Roadmap +====================== + + * None + +Credits +======= + +Contributors +------------ + +* Loïc Faure-Lacroix + +Maintainer +---------- + +.. image:: http://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://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. diff --git a/document_page_health_safety_manual/__init__.py b/document_page_health_safety_manual/__init__.py index d299a68286f8..482dffbda552 100644 --- a/document_page_health_safety_manual/__init__.py +++ b/document_page_health_safety_manual/__init__.py @@ -1,25 +1,19 @@ # -*- encoding: utf-8 -*- -<<<<<<< HEAD ############################################################################## -# # OpenERP, Open Source Management Solution # Copyright (C) 2010 Savoir-faire Linux (). # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as +# it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # ############################################################################## -======= - ->>>>>>> Moved module document_page_health_safety_manual to root for port -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index 2154b17e58a0..fac0829da3b2 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -25,12 +25,8 @@ "website": "http://www.savoirfairelinux.com", "license": "AGPL-3", "category": "Generic Modules/Others", - "description": """Health and Safety Manual Template - """, "depends": ['mgmtsystem_manuals'], "data": ['document_page_health_safety_manual.xml'], "demo": [], 'installable': True, - "certificate": '' } -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/document_page_health_safety_manual/static/src/img/icon.png b/document_page_health_safety_manual/static/description/icon.png similarity index 100% rename from document_page_health_safety_manual/static/src/img/icon.png rename to document_page_health_safety_manual/static/description/icon.png From c922a0ec58c1953ab4ae57647b8786db09978576 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Fri, 22 May 2015 19:45:55 +0200 Subject: [PATCH 07/26] Add bug tracker link on README.rst --- document_page_health_safety_manual/README.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/document_page_health_safety_manual/README.rst b/document_page_health_safety_manual/README.rst index 9e01e3389c62..955ba53d1734 100644 --- a/document_page_health_safety_manual/README.rst +++ b/document_page_health_safety_manual/README.rst @@ -36,6 +36,16 @@ Known issues / Roadmap * None + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + + Credits ======= From 52adc687811bd2102309c6733389637eacda1aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 9 Oct 2015 10:01:45 +0200 Subject: [PATCH 08/26] [UPD] prefix versions with 8.0 --- document_page_health_safety_manual/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index fac0829da3b2..e0b3176a815b 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -20,7 +20,7 @@ ############################################################################## { "name": "Document Management - Wiki - Health and Safety Manual", - "version": "1.0", + "version": "8.0.1.0.0", "author": "Savoir-faire Linux,Odoo Community Association (OCA)", "website": "http://www.savoirfairelinux.com", "license": "AGPL-3", From 7933f2ce5066129761f9d7527e0c01cf3540b2ee Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 14 Oct 2015 03:22:39 +0200 Subject: [PATCH 09/26] [MIG] Make modules uninstallable --- document_page_health_safety_manual/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index e0b3176a815b..a78b4986ecfb 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -28,5 +28,5 @@ "depends": ['mgmtsystem_manuals'], "data": ['document_page_health_safety_manual.xml'], "demo": [], - 'installable': True, + 'installable': False, } From dcd17a4ba24d45735654a06028730bf135e73a18 Mon Sep 17 00:00:00 2001 From: Gervais Naoussi Date: Fri, 30 Oct 2015 13:39:01 -0400 Subject: [PATCH 10/26] Migration of document_page_health_safety_manual to Odoo 9.0 --- document_page_health_safety_manual/README.rst | 44 +++++++++++-------- .../__openerp__.py | 14 +++--- .../document_page_health_safety_manual.xml | 11 ++--- 3 files changed, 38 insertions(+), 31 deletions(-) rename document_page_health_safety_manual/{ => data}/document_page_health_safety_manual.xml (67%) diff --git a/document_page_health_safety_manual/README.rst b/document_page_health_safety_manual/README.rst index 955ba53d1734..55922cc7aec4 100644 --- a/document_page_health_safety_manual/README.rst +++ b/document_page_health_safety_manual/README.rst @@ -1,40 +1,40 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 -Health and Safety Manual Template -================================= +======================== +Health and Safety Manual +======================== + +This module provides an Health and Safety Manual Template. -This module was written to extend the functionality of -management-system. Add a new document template for health -and safety manual. Installation ============ -To install this module, you need to: - - * Clone the project from git@github.com:OCA/knowledge.git - * Clone the project from git@github.com:OCA/management-system.git - * Add both projects to the addons path +* No installation required. Configuration ============= -To configure this module, you need to: - - * Nothing +* No configuration required Usage ===== -For further information, please visit: +To enter your information security manual, you need to: + +* go to Management Systems > Documentation > Manuals +* Create a new page and select the Health and Safety category. - * https://www.odoo.com/forum/help-1 +.. 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. Known issues / Roadmap ====================== - * None +* Report any issue or ideas to https://github.com/OCA/management-system/issues Bug Tracker @@ -43,7 +43,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`here `_. Credits @@ -53,6 +53,7 @@ Contributors ------------ * Loïc Faure-Lacroix +* Gervais Naoussi Maintainer ---------- @@ -66,3 +67,10 @@ 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 + +* Module updated to comply with OCA guidelines diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index a78b4986ecfb..9d416f927b92 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -1,4 +1,4 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution @@ -20,13 +20,17 @@ ############################################################################## { "name": "Document Management - Wiki - Health and Safety Manual", - "version": "8.0.1.0.0", + "version": "9.0.1.0.0", "author": "Savoir-faire Linux,Odoo Community Association (OCA)", "website": "http://www.savoirfairelinux.com", "license": "AGPL-3", "category": "Generic Modules/Others", - "depends": ['mgmtsystem_manuals'], - "data": ['document_page_health_safety_manual.xml'], + "depends": [ + 'mgmtsystem_manual' + ], + "data": [ + 'data/document_page_health_safety_manual.xml' + ], "demo": [], - 'installable': False, + 'installable': True, } diff --git a/document_page_health_safety_manual/document_page_health_safety_manual.xml b/document_page_health_safety_manual/data/document_page_health_safety_manual.xml similarity index 67% rename from document_page_health_safety_manual/document_page_health_safety_manual.xml rename to document_page_health_safety_manual/data/document_page_health_safety_manual.xml index 55abd78d2e5a..40671cf416b0 100644 --- a/document_page_health_safety_manual/document_page_health_safety_manual.xml +++ b/document_page_health_safety_manual/data/document_page_health_safety_manual.xml @@ -1,15 +1,10 @@ - - - + Health and Safety Manual - - content + category TODO: Add the structure of the health and safety manual from the OHSAS 18001 standard. - - - + From 568e291a3b3fd34e0217119867a8eaa59f55f17c Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Mon, 15 Feb 2016 14:24:14 -0500 Subject: [PATCH 11/26] [REN] Renaming file and improving documentation --- document_page_health_safety_manual/README.rst | 20 ++++++------------- .../__openerp__.py | 7 +++---- ...th_safety_manual.xml => document_page.xml} | 0 3 files changed, 9 insertions(+), 18 deletions(-) rename document_page_health_safety_manual/data/{document_page_health_safety_manual.xml => document_page.xml} (100%) diff --git a/document_page_health_safety_manual/README.rst b/document_page_health_safety_manual/README.rst index 55922cc7aec4..360937c3718f 100644 --- a/document_page_health_safety_manual/README.rst +++ b/document_page_health_safety_manual/README.rst @@ -6,8 +6,7 @@ Health and Safety Manual ======================== -This module provides an Health and Safety Manual Template. - +This module provides an Health and Safety Manual template. Installation ============ @@ -25,7 +24,8 @@ Usage To enter your information security manual, you need to: * go to Management Systems > Documentation > Manuals -* Create a new page and select the Health and Safety category. +* click on Create and select the Health and Safety Manual category +* enter your content .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot @@ -36,7 +36,6 @@ Known issues / Roadmap * Report any issue or ideas to https://github.com/OCA/management-system/issues - Bug Tracker =========== @@ -58,19 +57,12 @@ Contributors Maintainer ---------- -.. image:: http://odoo-community.org/logo.png +.. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association - :target: http://odoo-community.org + :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 - -* Module updated to comply with OCA guidelines +To contribute to this module, please visit https://odoo-community.org. diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index 9d416f927b92..2f35ec6b776c 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -19,9 +19,9 @@ # ############################################################################## { - "name": "Document Management - Wiki - Health and Safety Manual", + "name": "Health and Safety Manual", "version": "9.0.1.0.0", - "author": "Savoir-faire Linux,Odoo Community Association (OCA)", + "author": "Savoir-faire Linux, Odoo Community Association (OCA)", "website": "http://www.savoirfairelinux.com", "license": "AGPL-3", "category": "Generic Modules/Others", @@ -29,8 +29,7 @@ 'mgmtsystem_manual' ], "data": [ - 'data/document_page_health_safety_manual.xml' + 'data/document_page.xml' ], - "demo": [], 'installable': True, } diff --git a/document_page_health_safety_manual/data/document_page_health_safety_manual.xml b/document_page_health_safety_manual/data/document_page.xml similarity index 100% rename from document_page_health_safety_manual/data/document_page_health_safety_manual.xml rename to document_page_health_safety_manual/data/document_page.xml From 279d362609b182238a7f104e4af69583a57a99a1 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 14:57:26 +0200 Subject: [PATCH 12/26] [MIG] Make modules uninstallable --- document_page_health_safety_manual/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__openerp__.py index 2f35ec6b776c..b27488aeb07d 100644 --- a/document_page_health_safety_manual/__openerp__.py +++ b/document_page_health_safety_manual/__openerp__.py @@ -31,5 +31,5 @@ "data": [ 'data/document_page.xml' ], - 'installable': True, + 'installable': False, } From 34a2767a7d53f6a978a7102faded456733c97ed4 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 14:57:32 +0200 Subject: [PATCH 13/26] [MIG] Rename manifest files --- .../{__openerp__.py => __manifest__.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename document_page_health_safety_manual/{__openerp__.py => __manifest__.py} (100%) diff --git a/document_page_health_safety_manual/__openerp__.py b/document_page_health_safety_manual/__manifest__.py similarity index 100% rename from document_page_health_safety_manual/__openerp__.py rename to document_page_health_safety_manual/__manifest__.py From 6bcec5978e95d6fe2729a5602f58154db7a9ec1b Mon Sep 17 00:00:00 2001 From: flachica Date: Tue, 17 Mar 2020 16:57:12 +0100 Subject: [PATCH 14/26] Migration 13.0 --- document_page_health_safety_manual/README.rst | 79 ++++--------------- .../__init__.py | 2 +- .../__manifest__.py | 19 ++--- .../data/document_page.xml | 2 +- .../migrations/7.0.1.0/post-migration.py | 66 ---------------- .../readme/CONTRIBUTORS.rst | 6 ++ .../readme/DESCRIPTION.rst | 1 + .../readme/ROADMAP.rst | 1 + .../readme/USAGE.rst | 5 ++ 9 files changed, 38 insertions(+), 143 deletions(-) delete mode 100644 document_page_health_safety_manual/migrations/7.0.1.0/post-migration.py create mode 100644 document_page_health_safety_manual/readme/CONTRIBUTORS.rst create mode 100644 document_page_health_safety_manual/readme/DESCRIPTION.rst create mode 100644 document_page_health_safety_manual/readme/ROADMAP.rst create mode 100644 document_page_health_safety_manual/readme/USAGE.rst diff --git a/document_page_health_safety_manual/README.rst b/document_page_health_safety_manual/README.rst index 360937c3718f..21cd7854d5e2 100644 --- a/document_page_health_safety_manual/README.rst +++ b/document_page_health_safety_manual/README.rst @@ -1,68 +1,21 @@ -.. 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 +**This file is going to be generated by oca-gen-addon-readme.** -======================== -Health and Safety Manual -======================== +*Manual changes will be overwritten.* -This module provides an Health and Safety Manual template. +Please provide content in the ``readme`` directory: -Installation -============ +* **DESCRIPTION.rst** (required) +* INSTALL.rst (optional) +* CONFIGURE.rst (optional) +* **USAGE.rst** (optional, highly recommended) +* DEVELOP.rst (optional) +* ROADMAP.rst (optional) +* HISTORY.rst (optional, recommended) +* **CONTRIBUTORS.rst** (optional, highly recommended) +* CREDITS.rst (optional) -* No installation required. +Content of this README will also be drawn from the addon manifest, +from keys such as name, authors, maintainers, development_status, +and license. -Configuration -============= - -* No configuration required - -Usage -===== - -To enter your information security manual, you need to: - -* go to Management Systems > Documentation > Manuals -* click on Create and select the Health and Safety Manual category -* enter your content - -.. 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. - -Known issues / Roadmap -====================== - -* Report any issue or ideas to https://github.com/OCA/management-system/issues - -Bug Tracker -=========== - -Bugs are tracked on `GitHub 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 `_. - - -Credits -======= - -Contributors ------------- - -* Loïc Faure-Lacroix -* Gervais Naoussi - -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 https://odoo-community.org. +A good, one sentence summary in the manifest is also highly recommended. diff --git a/document_page_health_safety_manual/__init__.py b/document_page_health_safety_manual/__init__.py index 482dffbda552..75b83e4df9fb 100644 --- a/document_page_health_safety_manual/__init__.py +++ b/document_page_health_safety_manual/__init__.py @@ -1,5 +1,5 @@ -# -*- encoding: utf-8 -*- ############################################################################## +# # OpenERP, Open Source Management Solution # Copyright (C) 2010 Savoir-faire Linux (). # diff --git a/document_page_health_safety_manual/__manifest__.py b/document_page_health_safety_manual/__manifest__.py index b27488aeb07d..7889b8c40550 100644 --- a/document_page_health_safety_manual/__manifest__.py +++ b/document_page_health_safety_manual/__manifest__.py @@ -1,35 +1,30 @@ -# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010 Savoir-faire Linux (). # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as +# it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. +# GNU General Public License for more details. # -# You should have received a copy of the GNU Affero General Public License +# You should have received a copy of the GNU General Public License # along with this program. If not, see . # ############################################################################## { "name": "Health and Safety Manual", - "version": "9.0.1.0.0", + "version": "13.0.1.0.0", "author": "Savoir-faire Linux, Odoo Community Association (OCA)", "website": "http://www.savoirfairelinux.com", "license": "AGPL-3", "category": "Generic Modules/Others", - "depends": [ - 'mgmtsystem_manual' - ], - "data": [ - 'data/document_page.xml' - ], - 'installable': False, + "depends": ["mgmtsystem_manual"], + "data": ["data/document_page.xml"], + "installable": True, } diff --git a/document_page_health_safety_manual/data/document_page.xml b/document_page_health_safety_manual/data/document_page.xml index 40671cf416b0..d5ff29aa01c8 100644 --- a/document_page_health_safety_manual/data/document_page.xml +++ b/document_page_health_safety_manual/data/document_page.xml @@ -3,7 +3,7 @@ Health and Safety Manual category - + TODO: Add the structure of the health and safety manual from the OHSAS 18001 standard. diff --git a/document_page_health_safety_manual/migrations/7.0.1.0/post-migration.py b/document_page_health_safety_manual/migrations/7.0.1.0/post-migration.py deleted file mode 100644 index b494aa275f8c..000000000000 --- a/document_page_health_safety_manual/migrations/7.0.1.0/post-migration.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2013 Savoir-faire Linux -# (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -import logging -logger = logging.getLogger('upgrade') -logger.setLevel(logging.DEBUG) - -xmlid_renames = [ - ('document_page_health_safety_manual.wiki_health_safety_manual', - 'document_page_health_safety_manual.document_page_health_safety_manual'), -] - - -def logged_query(cr, query, args=None): - """ - Logs query and affected rows at level DEBUG - """ - if args is None: - args = [] - cr.execute(query, args) - logger.debug('Running %s', query % tuple(args)) - logger.debug('%s rows affected', cr.rowcount) - return cr.rowcount - - -def rename_xmlids(cr, xmlids_spec): - """ - Rename XML IDs. Typically called in the pre script. - One usage example is when an ID changes module. In OpenERP 6 for example, - a number of res_groups IDs moved to module base from other modules ( - although they were still being defined in their respective module). - """ - for (old, new) in xmlids_spec: - if not old.split('.') or not new.split('.'): - logger.error( - 'Cannot rename XMLID %s to %s: need the module ' - 'reference to be specified in the IDs' % (old, new)) - else: - query = ("UPDATE ir_model_data SET module = %s, name = %s " - "WHERE module = %s and name = %s") - logged_query(cr, query, tuple(new.split('.') + old.split('.'))) - - -def migrate(cr, version): - if version is None: - return - rename_xmlids(cr, xmlid_renames) diff --git a/document_page_health_safety_manual/readme/CONTRIBUTORS.rst b/document_page_health_safety_manual/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..9ec3aef9d694 --- /dev/null +++ b/document_page_health_safety_manual/readme/CONTRIBUTORS.rst @@ -0,0 +1,6 @@ +* Loïc Faure-Lacroix +* Gervais Naoussi + +* `Guadaltech `_: + + * Fernando La Chica diff --git a/document_page_health_safety_manual/readme/DESCRIPTION.rst b/document_page_health_safety_manual/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..722ae4912674 --- /dev/null +++ b/document_page_health_safety_manual/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module provides an Health and Safety Manual template. diff --git a/document_page_health_safety_manual/readme/ROADMAP.rst b/document_page_health_safety_manual/readme/ROADMAP.rst new file mode 100644 index 000000000000..25eb07bd14e4 --- /dev/null +++ b/document_page_health_safety_manual/readme/ROADMAP.rst @@ -0,0 +1 @@ +* Report any issue or ideas to https://github.com/OCA/management-system/issues diff --git a/document_page_health_safety_manual/readme/USAGE.rst b/document_page_health_safety_manual/readme/USAGE.rst new file mode 100644 index 000000000000..8b062396bd84 --- /dev/null +++ b/document_page_health_safety_manual/readme/USAGE.rst @@ -0,0 +1,5 @@ +To enter your information security manual, you need to: + +* go to Management Systems > Documentation > Manuals +* click on Create and select the Health and Safety Manual category +* enter your content From 71cc588114c0eafbafbb6629ad867b92174b2099 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Mon, 7 Dec 2020 08:25:42 +0000 Subject: [PATCH 15/26] [UPD] Update document_page_health_safety_manual.pot --- .../i18n/document_page_health_safety_manual.pot | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot diff --git a/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot b/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot new file mode 100644 index 000000000000..cc93d01ee547 --- /dev/null +++ b/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot @@ -0,0 +1,13 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" From 8ae4f810a16981f4da33321b5f13207297779782 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 7 Dec 2020 08:39:13 +0000 Subject: [PATCH 16/26] [UPD] README.rst --- document_page_health_safety_manual/README.rst | 103 +++- .../static/description/index.html | 441 ++++++++++++++++++ 2 files changed, 528 insertions(+), 16 deletions(-) create mode 100644 document_page_health_safety_manual/static/description/index.html diff --git a/document_page_health_safety_manual/README.rst b/document_page_health_safety_manual/README.rst index 21cd7854d5e2..fc386de6bed1 100644 --- a/document_page_health_safety_manual/README.rst +++ b/document_page_health_safety_manual/README.rst @@ -1,21 +1,92 @@ -**This file is going to be generated by oca-gen-addon-readme.** +======================== +Health and Safety Manual +======================== -*Manual changes will be overwritten.* +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -Please provide content in the ``readme`` directory: +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanagement--system-lightgray.png?logo=github + :target: https://github.com/OCA/management-system/tree/13.0/document_page_health_safety_manual + :alt: OCA/management-system +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/management-system-13-0/management-system-13-0-document_page_health_safety_manual + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/128/13.0 + :alt: Try me on Runbot -* **DESCRIPTION.rst** (required) -* INSTALL.rst (optional) -* CONFIGURE.rst (optional) -* **USAGE.rst** (optional, highly recommended) -* DEVELOP.rst (optional) -* ROADMAP.rst (optional) -* HISTORY.rst (optional, recommended) -* **CONTRIBUTORS.rst** (optional, highly recommended) -* CREDITS.rst (optional) +|badge1| |badge2| |badge3| |badge4| |badge5| -Content of this README will also be drawn from the addon manifest, -from keys such as name, authors, maintainers, development_status, -and license. +This module provides an Health and Safety Manual template. -A good, one sentence summary in the manifest is also highly recommended. +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To enter your information security manual, you need to: + +* go to Management Systems > Documentation > Manuals +* click on Create and select the Health and Safety Manual category +* enter your content + +Known issues / Roadmap +====================== + +* Report any issue or ideas to https://github.com/OCA/management-system/issues + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Savoir-faire Linux + +Contributors +~~~~~~~~~~~~ + +* Loïc Faure-Lacroix +* Gervais Naoussi + +* `Guadaltech `_: + + * Fernando La Chica + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +This module is part of the `OCA/management-system `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/document_page_health_safety_manual/static/description/index.html b/document_page_health_safety_manual/static/description/index.html new file mode 100644 index 000000000000..e84c425e9761 --- /dev/null +++ b/document_page_health_safety_manual/static/description/index.html @@ -0,0 +1,441 @@ + + + + + + +Health and Safety Manual + + + +
+

Health and Safety Manual

+ + +

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

+

This module provides an Health and Safety Manual template.

+

Table of contents

+ +
+

Usage

+

To enter your information security manual, you need to:

+
    +
  • go to Management Systems > Documentation > Manuals
  • +
  • click on Create and select the Health and Safety Manual category
  • +
  • enter your content
  • +
+
+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Savoir-faire Linux
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

This module is part of the OCA/management-system project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + From aa751a0d6118a57575f1afe5f4c579b5f07ae06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A0n=20Todorovich?= Date: Wed, 18 May 2022 08:44:19 -0300 Subject: [PATCH 17/26] [IMP] pre-commit run -a --- document_page_health_safety_manual/__manifest__.py | 2 +- document_page_health_safety_manual/data/document_page.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/document_page_health_safety_manual/__manifest__.py b/document_page_health_safety_manual/__manifest__.py index 7889b8c40550..d8ca4aac8881 100644 --- a/document_page_health_safety_manual/__manifest__.py +++ b/document_page_health_safety_manual/__manifest__.py @@ -21,7 +21,7 @@ "name": "Health and Safety Manual", "version": "13.0.1.0.0", "author": "Savoir-faire Linux, Odoo Community Association (OCA)", - "website": "http://www.savoirfairelinux.com", + "website": "https://github.com/OCA/management-system", "license": "AGPL-3", "category": "Generic Modules/Others", "depends": ["mgmtsystem_manual"], diff --git a/document_page_health_safety_manual/data/document_page.xml b/document_page_health_safety_manual/data/document_page.xml index d5ff29aa01c8..e4866a23cf24 100644 --- a/document_page_health_safety_manual/data/document_page.xml +++ b/document_page_health_safety_manual/data/document_page.xml @@ -1,4 +1,4 @@ - + Health and Safety Manual From a3b6c97f84e7c18b7a052df7652152d6607ac8c5 Mon Sep 17 00:00:00 2001 From: Sergio Zanchetta Date: Wed, 16 Nov 2022 15:33:51 +0000 Subject: [PATCH 18/26] Added translation using Weblate (Italian) --- document_page_health_safety_manual/i18n/it.po | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 document_page_health_safety_manual/i18n/it.po diff --git a/document_page_health_safety_manual/i18n/it.po b/document_page_health_safety_manual/i18n/it.po new file mode 100644 index 000000000000..44b9b5f8e22c --- /dev/null +++ b/document_page_health_safety_manual/i18n/it.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" From ef6dd4d73f5d1c18c1cf0250d5bc0cd7f1d3b8b9 Mon Sep 17 00:00:00 2001 From: Stefano Consolaro Date: Sun, 18 Dec 2022 09:21:43 +0100 Subject: [PATCH 19/26] [MIG] document_page_health_safety_manual: Migration to 15.0 --- document_page_health_safety_manual/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document_page_health_safety_manual/__manifest__.py b/document_page_health_safety_manual/__manifest__.py index d8ca4aac8881..2edec804ab31 100644 --- a/document_page_health_safety_manual/__manifest__.py +++ b/document_page_health_safety_manual/__manifest__.py @@ -19,7 +19,7 @@ ############################################################################## { "name": "Health and Safety Manual", - "version": "13.0.1.0.0", + "version": "15.0.1.0.0", "author": "Savoir-faire Linux, Odoo Community Association (OCA)", "website": "https://github.com/OCA/management-system", "license": "AGPL-3", From 7c411f7a616b1536c114c49bcc0155280a5b3843 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Mon, 19 Dec 2022 15:08:50 +0000 Subject: [PATCH 20/26] [UPD] Update document_page_health_safety_manual.pot --- document_page_health_safety_manual/README.rst | 10 +++++----- .../i18n/document_page_health_safety_manual.pot | 2 +- document_page_health_safety_manual/i18n/it.po | 14 -------------- .../static/description/index.html | 6 +++--- 4 files changed, 9 insertions(+), 23 deletions(-) diff --git a/document_page_health_safety_manual/README.rst b/document_page_health_safety_manual/README.rst index fc386de6bed1..bd6a2caac8df 100644 --- a/document_page_health_safety_manual/README.rst +++ b/document_page_health_safety_manual/README.rst @@ -14,13 +14,13 @@ Health and Safety Manual :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanagement--system-lightgray.png?logo=github - :target: https://github.com/OCA/management-system/tree/13.0/document_page_health_safety_manual + :target: https://github.com/OCA/management-system/tree/15.0/document_page_health_safety_manual :alt: OCA/management-system .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/management-system-13-0/management-system-13-0-document_page_health_safety_manual + :target: https://translation.odoo-community.org/projects/management-system-15-0/management-system-15-0-document_page_health_safety_manual :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/128/13.0 + :target: https://runbot.odoo-community.org/runbot/128/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -52,7 +52,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -87,6 +87,6 @@ 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. -This module is part of the `OCA/management-system `_ project on GitHub. +This module is part of the `OCA/management-system `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot b/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot index cc93d01ee547..a11baf5cd77c 100644 --- a/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot +++ b/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot @@ -3,7 +3,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/document_page_health_safety_manual/i18n/it.po b/document_page_health_safety_manual/i18n/it.po index 44b9b5f8e22c..e69de29bb2d1 100644 --- a/document_page_health_safety_manual/i18n/it.po +++ b/document_page_health_safety_manual/i18n/it.po @@ -1,14 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" -"Language: it\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" diff --git a/document_page_health_safety_manual/static/description/index.html b/document_page_health_safety_manual/static/description/index.html index e84c425e9761..fa7f5f4a2c5f 100644 --- a/document_page_health_safety_manual/static/description/index.html +++ b/document_page_health_safety_manual/static/description/index.html @@ -367,7 +367,7 @@

Health and Safety Manual

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

This module provides an Health and Safety Manual template.

Table of contents

@@ -403,7 +403,7 @@

Bug Tracker

Bugs are tracked on GitHub 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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -432,7 +432,7 @@

Maintainers

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.

-

This module is part of the OCA/management-system project on GitHub.

+

This module is part of the OCA/management-system project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

From 821f20aadcd175d8520c172a65305e3614cc644d Mon Sep 17 00:00:00 2001 From: Stefano Consolaro Date: Mon, 19 Dec 2022 22:53:09 +0100 Subject: [PATCH 21/26] [MIG] document_page_health_safety_manual: Migration to 16.0 --- document_page_health_safety_manual/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document_page_health_safety_manual/__manifest__.py b/document_page_health_safety_manual/__manifest__.py index 2edec804ab31..71d309a16b1a 100644 --- a/document_page_health_safety_manual/__manifest__.py +++ b/document_page_health_safety_manual/__manifest__.py @@ -19,7 +19,7 @@ ############################################################################## { "name": "Health and Safety Manual", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "author": "Savoir-faire Linux, Odoo Community Association (OCA)", "website": "https://github.com/OCA/management-system", "license": "AGPL-3", From 7d3672a95863ca512043bf666925a956f02dbf1c Mon Sep 17 00:00:00 2001 From: oca-ci Date: Tue, 20 Dec 2022 19:15:43 +0000 Subject: [PATCH 22/26] [UPD] Update document_page_health_safety_manual.pot --- .../i18n/document_page_health_safety_manual.pot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot b/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot index a11baf5cd77c..78d58d53fe07 100644 --- a/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot +++ b/document_page_health_safety_manual/i18n/document_page_health_safety_manual.pot @@ -3,7 +3,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 15.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" From 1a73a0d2e321428c43bd6ee04d80101e20d51e83 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 20 Dec 2022 19:18:40 +0000 Subject: [PATCH 23/26] [UPD] README.rst --- document_page_health_safety_manual/README.rst | 10 +++++----- .../static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/document_page_health_safety_manual/README.rst b/document_page_health_safety_manual/README.rst index bd6a2caac8df..6a8b4915deac 100644 --- a/document_page_health_safety_manual/README.rst +++ b/document_page_health_safety_manual/README.rst @@ -14,13 +14,13 @@ Health and Safety Manual :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanagement--system-lightgray.png?logo=github - :target: https://github.com/OCA/management-system/tree/15.0/document_page_health_safety_manual + :target: https://github.com/OCA/management-system/tree/16.0/document_page_health_safety_manual :alt: OCA/management-system .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/management-system-15-0/management-system-15-0-document_page_health_safety_manual + :target: https://translation.odoo-community.org/projects/management-system-16-0/management-system-16-0-document_page_health_safety_manual :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/128/15.0 + :target: https://runbot.odoo-community.org/runbot/128/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -52,7 +52,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -87,6 +87,6 @@ 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. -This module is part of the `OCA/management-system `_ project on GitHub. +This module is part of the `OCA/management-system `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/document_page_health_safety_manual/static/description/index.html b/document_page_health_safety_manual/static/description/index.html index fa7f5f4a2c5f..0354721bd508 100644 --- a/document_page_health_safety_manual/static/description/index.html +++ b/document_page_health_safety_manual/static/description/index.html @@ -367,7 +367,7 @@

Health and Safety Manual

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

This module provides an Health and Safety Manual template.

Table of contents

@@ -403,7 +403,7 @@

Bug Tracker

Bugs are tracked on GitHub 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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -432,7 +432,7 @@

Maintainers

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.

-

This module is part of the OCA/management-system project on GitHub.

+

This module is part of the OCA/management-system project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

From 7c4798caa9d51b03927536dd312249cb350f8d8f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 3 Sep 2023 14:25:00 +0000 Subject: [PATCH 24/26] [UPD] README.rst --- document_page_health_safety_manual/README.rst | 15 ++++--- .../static/description/index.html | 42 ++++++++++--------- 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/document_page_health_safety_manual/README.rst b/document_page_health_safety_manual/README.rst index 6a8b4915deac..77932ab55bc9 100644 --- a/document_page_health_safety_manual/README.rst +++ b/document_page_health_safety_manual/README.rst @@ -2,10 +2,13 @@ Health and Safety Manual ======================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:72bb4d4a4da5acaa70958ca4fcb1cc637cb872c87b8f49cb0dd131a9e656fb77 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -19,11 +22,11 @@ Health and Safety Manual .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/management-system-16-0/management-system-16-0-document_page_health_safety_manual :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/128/16.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/management-system&target_branch=16.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module provides an Health and Safety Manual template. @@ -51,7 +54,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 +If you spotted it first, help us to smash it by providing a detailed and welcomed `feedback `_. Do not contact contributors directly about support or help with technical issues. diff --git a/document_page_health_safety_manual/static/description/index.html b/document_page_health_safety_manual/static/description/index.html index 0354721bd508..a731f2f73667 100644 --- a/document_page_health_safety_manual/static/description/index.html +++ b/document_page_health_safety_manual/static/description/index.html @@ -1,20 +1,20 @@ - + - + Health and Safety Manual