From 0fd88b99b11a3ffc27b47e7ce33aa7d5e47b13e4 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Fri, 9 Mar 2012 18:47:59 -0500 Subject: [PATCH 01/32] [ADD] mgmtsystem_review * Initial commit. Import from extra-addons. * cleanup * Group references. Reported by michaelgiesbrecht on the forum. * Icons * Move audittrail dependency from mgmtsystem to requiring modules --- mgmtsystem_review/__init__.py | 25 ++ mgmtsystem_review/__openerp__.py | 54 ++++ mgmtsystem_review/i18n/fr.po | 273 ++++++++++++++++++ mgmtsystem_review/i18n/mgmtsystem_review.pot | 270 +++++++++++++++++ mgmtsystem_review/mgmtsystem_review.py | 71 +++++ mgmtsystem_review/mgmtsystem_review.xml | 179 ++++++++++++ mgmtsystem_review/report/__init__.py | 22 ++ mgmtsystem_review/report/review_report.py | 39 +++ mgmtsystem_review/report/review_report.rml | 96 ++++++ mgmtsystem_review/report/review_report.xml | 14 + mgmtsystem_review/review_sequence.xml | 19 ++ .../security/ir.model.access.csv | 3 + mgmtsystem_review/static/src/img/icon.png | Bin 0 -> 2397 bytes 13 files changed, 1065 insertions(+) create mode 100755 mgmtsystem_review/__init__.py create mode 100755 mgmtsystem_review/__openerp__.py create mode 100644 mgmtsystem_review/i18n/fr.po create mode 100644 mgmtsystem_review/i18n/mgmtsystem_review.pot create mode 100644 mgmtsystem_review/mgmtsystem_review.py create mode 100644 mgmtsystem_review/mgmtsystem_review.xml create mode 100644 mgmtsystem_review/report/__init__.py create mode 100644 mgmtsystem_review/report/review_report.py create mode 100644 mgmtsystem_review/report/review_report.rml create mode 100644 mgmtsystem_review/report/review_report.xml create mode 100644 mgmtsystem_review/review_sequence.xml create mode 100644 mgmtsystem_review/security/ir.model.access.csv create mode 100644 mgmtsystem_review/static/src/img/icon.png diff --git a/mgmtsystem_review/__init__.py b/mgmtsystem_review/__init__.py new file mode 100755 index 000000000000..9f8136d205fd --- /dev/null +++ b/mgmtsystem_review/__init__.py @@ -0,0 +1,25 @@ +# -*- 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 . +# +############################################################################## +import mgmtsystem_review + +import report +import wizard +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/mgmtsystem_review/__openerp__.py b/mgmtsystem_review/__openerp__.py new file mode 100755 index 000000000000..55433da9f467 --- /dev/null +++ b/mgmtsystem_review/__openerp__.py @@ -0,0 +1,54 @@ +# -*- 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 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 . +# +############################################################################## +{ + "name" : "Management System - Review", + "version" : "1.0", + "author" : "Savoir-faire Linux", + "website" : "http://www.savoirfairelinux.com", +<<<<<<< d494b4b853d2a89f552200583478a2ebdffcb095 + "license" : "AGPL-3", +======= + "license" : "AGPL", +>>>>>>> [CHG] AGPL license; set verion to 1.0 + "category" : "Management System", + "description": """ + This module enables you to manage reviews of + your management system. + """, + "depends" : [ + 'mgmtsystem_nonconformity', + 'mgmtsystem_survey', + 'audittrail', + ], + "init_xml" : [ + 'review_sequence.xml', + ], + "update_xml" : [ + 'security/ir.model.access.csv', + 'mgmtsystem_review.xml', + 'report/review_report.xml', + ], + "demo_xml" : [], + "installable" : True, + "certificate" : '' +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + diff --git a/mgmtsystem_review/i18n/fr.po b/mgmtsystem_review/i18n/fr.po new file mode 100644 index 000000000000..39195e5e6569 --- /dev/null +++ b/mgmtsystem_review/i18n/fr.po @@ -0,0 +1,273 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * mgmtsystem_review +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.1-dev\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2011-07-25 18:15+0000\n" +"PO-Revision-Date: 2011-07-29 15:42+0000\n" +"Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) " +"\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-01-17 05:06+0000\n" +"X-Generator: Launchpad (build 14676)\n" + +#. module: mgmtsystem_review +#: model:ir.module.module,shortdesc:mgmtsystem_review.module_meta_information +msgid "Management System - Review" +msgstr "Système de gestion - Revue de direction" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Review Report" +msgstr "Rapport de la revue" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +msgid "Closed Reviews" +msgstr "Revues archivées" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: report:mgmtsystem.review.report:0 +msgid "Changes affecting the management systems" +msgstr "Changements affectant les systèmes de gestion" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Date:" +msgstr "Date :" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Confidentiality: Direction Review" +msgstr "Confidentialité : Revue de direction" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,user_ids:0 +msgid "Participants" +msgstr "Participants" + +#. module: mgmtsystem_review +#: model:ir.actions.report.xml,name:mgmtsystem_review.mgmtsystem_review_report +msgid "Print Report" +msgstr "Imprimer le rapport" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: selection:mgmtsystem.review,state:0 +msgid "Closed" +msgstr "Archivée" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,policy:0 +msgid "Policy" +msgstr "Politiques" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,decision:0 +msgid "Decision" +msgstr "Décision" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,type:0 +msgid "Type" +msgstr "Type" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,conclusion:0 +#: report:mgmtsystem.review.report:0 +msgid "Conclusion" +msgstr "Conclusion" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Satisfaction Survey Answers" +msgstr "Réponses au questionnaire de satisfaction" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Comments:" +msgstr "Commentaires :" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Action:" +msgstr "Action :" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid ")" +msgstr ")" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "(" +msgstr "(" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,name:0 +msgid "Title" +msgstr "Titre" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "-" +msgstr "-" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Decision:" +msgstr "Décision :" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,date:0 +msgid "Date" +msgstr "Date" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "State:" +msgstr "État :" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,nonconformity_id:0 +msgid "Nonconformity" +msgstr "Nonconformité" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Improvements:" +msgstr "Améliorations :" + +#. module: mgmtsystem_review +#: selection:mgmtsystem.review.line,type:0 +msgid "Noncomformity" +msgstr "Noncomformité" + +#. module: mgmtsystem_review +#: model:ir.model,name:mgmtsystem_review.model_mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review.line,review_id:0 +msgid "Review" +msgstr "Revue" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,name:0 +msgid "Name" +msgstr "Nom" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: report:mgmtsystem.review.report:0 +msgid "Inputs" +msgstr "Éléments d'entrée" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,line_ids:0 +msgid "Lines" +msgstr "Lignes" + +#. module: mgmtsystem_review +#: model:ir.actions.act_window,name:mgmtsystem_review.open_mgmtsystem_review_list +#: model:ir.ui.menu,name:mgmtsystem_review.menu_open_review +#: view:mgmtsystem.review:0 +msgid "Reviews" +msgstr "Revues" + +#. module: mgmtsystem_review +#: model:ir.model,name:mgmtsystem_review.model_mgmtsystem_review_line +#: view:mgmtsystem.review.line:0 +msgid "Review Line" +msgstr "Ligne de revue" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,state:0 +msgid "State" +msgstr "État" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Policies" +msgstr "Politiques" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,response_ids:0 +msgid "Survey Answers" +msgstr "Réponses au questionnaire" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,action_id:0 +#: selection:mgmtsystem.review.line,type:0 +msgid "Action" +msgstr "Action" + +#. module: mgmtsystem_review +#: model:ir.module.module,description:mgmtsystem_review.module_meta_information +msgid "" +"\n" +"\tThis module enables you to manage reviews of \n" +" your management system.\n" +" " +msgstr "" +"\n" +"\tCe module vous permet de gérer les revues de direction\n" +" de vos systèmes de gestion.\n" +" " + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,changes:0 +msgid "Changes" +msgstr "Changements" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,reference:0 +msgid "Reference" +msgstr "Référence" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Participants:" +msgstr "Participants :" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Reference:" +msgstr "Référence :" + +#. module: mgmtsystem_review +#: model:ir.actions.act_window,name:mgmtsystem_review.open_mgmtsystem_review_line_list +#: view:mgmtsystem.review.line:0 +msgid "Review Lines" +msgstr "Lignes de revue" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +msgid "Open Reviews" +msgstr "Revues ouvertes" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Expectations:" +msgstr "Attentes :" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +msgid "Close" +msgstr "Archiver" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: selection:mgmtsystem.review,state:0 +msgid "Open" +msgstr "Ouverte" diff --git a/mgmtsystem_review/i18n/mgmtsystem_review.pot b/mgmtsystem_review/i18n/mgmtsystem_review.pot new file mode 100644 index 000000000000..18b67c4d96d6 --- /dev/null +++ b/mgmtsystem_review/i18n/mgmtsystem_review.pot @@ -0,0 +1,270 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * mgmtsystem_review +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.1-dev\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2011-07-25 18:15+0000\n" +"PO-Revision-Date: 2011-07-25 18:15+0000\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" + +#. module: mgmtsystem_review +#: model:ir.module.module,shortdesc:mgmtsystem_review.module_meta_information +msgid "Management System - Review" +msgstr "Système de gestion - Revue de direction" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Review Report" +msgstr "Review Report" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +msgid "Closed Reviews" +msgstr "Revues archivées" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: report:mgmtsystem.review.report:0 +msgid "Changes affecting the management systems" +msgstr "Changements affectant les systèmes de gestion" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Date:" +msgstr "Date:" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Confidentiality: Direction Review" +msgstr "Confidentiality: Direction Review" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,user_ids:0 +msgid "Participants" +msgstr "Participants" + +#. module: mgmtsystem_review +#: model:ir.actions.report.xml,name:mgmtsystem_review.mgmtsystem_review_report +msgid "Print Report" +msgstr "Imprimer le rapport" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: selection:mgmtsystem.review,state:0 +msgid "Closed" +msgstr "Archivée" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,policy:0 +msgid "Policy" +msgstr "Politiques" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,decision:0 +msgid "Decision" +msgstr "Decision" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,type:0 +msgid "Type" +msgstr "Type" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,conclusion:0 +#: report:mgmtsystem.review.report:0 +msgid "Conclusion" +msgstr "Conclusion" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Satisfaction Survey Answers" +msgstr "Satisfaction Survey Answers" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Comments:" +msgstr "Comments:" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Action:" +msgstr "Action:" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid ")" +msgstr ")" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "(" +msgstr "(" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,name:0 +msgid "Title" +msgstr "Titre" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "-" +msgstr "-" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Decision:" +msgstr "Decision:" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,date:0 +msgid "Date" +msgstr "Date" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "State:" +msgstr "State:" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,nonconformity_id:0 +msgid "Nonconformity" +msgstr "Nonconformité" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Improvements:" +msgstr "Improvements:" + +#. module: mgmtsystem_review +#: selection:mgmtsystem.review.line,type:0 +msgid "Noncomformity" +msgstr "Noncomformité" + +#. module: mgmtsystem_review +#: model:ir.model,name:mgmtsystem_review.model_mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review.line,review_id:0 +msgid "Review" +msgstr "Revue" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,name:0 +msgid "Name" +msgstr "Nom" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: report:mgmtsystem.review.report:0 +msgid "Inputs" +msgstr "Inputs" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,line_ids:0 +msgid "Lines" +msgstr "Lignes" + +#. module: mgmtsystem_review +#: model:ir.actions.act_window,name:mgmtsystem_review.open_mgmtsystem_review_list +#: model:ir.ui.menu,name:mgmtsystem_review.menu_open_review +#: view:mgmtsystem.review:0 +msgid "Reviews" +msgstr "Revues" + +#. module: mgmtsystem_review +#: model:ir.model,name:mgmtsystem_review.model_mgmtsystem_review_line +#: view:mgmtsystem.review.line:0 +msgid "Review Line" +msgstr "Ligne de revue" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,state:0 +msgid "State" +msgstr "État" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Policies" +msgstr "Policies" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: field:mgmtsystem.review,response_ids:0 +msgid "Survey Answers" +msgstr "Réponses au questionnaire" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review.line,action_id:0 +#: selection:mgmtsystem.review.line,type:0 +msgid "Action" +msgstr "Action" + +#. module: mgmtsystem_review +#: model:ir.module.module,description:mgmtsystem_review.module_meta_information +msgid "\n" +" This module enables you to manage reviews of \n" +" your management system.\n" +" " +msgstr "\n" +" Ce module vous permet de gérer les revues de direction\n" +" de vos systèmes de gestion.\n" +" " + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,changes:0 +msgid "Changes" +msgstr "Changements" + +#. module: mgmtsystem_review +#: field:mgmtsystem.review,reference:0 +msgid "Reference" +msgstr "Référence" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Participants:" +msgstr "Participants:" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Reference:" +msgstr "Référence:" + +#. module: mgmtsystem_review +#: model:ir.actions.act_window,name:mgmtsystem_review.open_mgmtsystem_review_line_list +#: view:mgmtsystem.review.line:0 +msgid "Review Lines" +msgstr "Lignes de revue" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +msgid "Open Reviews" +msgstr "Revues ouvertes" + +#. module: mgmtsystem_review +#: report:mgmtsystem.review.report:0 +msgid "Expectations:" +msgstr "Expectations:" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +msgid "Close" +msgstr "Archiver" + +#. module: mgmtsystem_review +#: view:mgmtsystem.review:0 +#: selection:mgmtsystem.review,state:0 +msgid "Open" +msgstr "Ouverte" + diff --git a/mgmtsystem_review/mgmtsystem_review.py b/mgmtsystem_review/mgmtsystem_review.py new file mode 100644 index 000000000000..8a7164914eaf --- /dev/null +++ b/mgmtsystem_review/mgmtsystem_review.py @@ -0,0 +1,71 @@ +# -*- 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 . +# +############################################################################## + +from osv import fields, osv +from tools.translate import _ + +class mgmtsystem_review(osv.osv): + _name = "mgmtsystem.review" + _description = "Review" + _columns = { + 'name': fields.char('Name', size=50, required=True), + 'reference': fields.char('Reference', size=64, required=True, readonly=True), + 'date': fields.datetime('Date', required=True), + 'user_ids': fields.many2many('res.users','mgmtsystem_review_user_rel','user_id','mgmtsystem_review_id','Participants'), + 'response_ids': fields.many2many('survey.response','mgmtsystem_review_response_rel','response_id','mgmtsystem_review_id','Survey Answers'), + 'policy': fields.text('Policy'), + 'changes': fields.text('Changes'), + 'line_ids': fields.one2many('mgmtsystem.review.line','review_id','Lines'), + 'conclusion': fields.text('Conclusion'), + 'state': fields.selection([('o','Open'),('c','Closed')], 'State') + } + + _defaults = { + 'reference': 'NEW', + 'state': 'o' + } + + def create(self, cr, uid, vals, context=None): + vals.update({ + 'reference': self.pool.get('ir.sequence').get(cr, uid, 'mgmtsystem.review') + }) + return super(mgmtsystem_review, self).create(cr, uid, vals, context) + + def button_close(self, cr, uid, ids, context=None): + return self.write(cr, uid, ids, {'state': 'c'}) + +mgmtsystem_review() + +class mgmtsystem_review_line(osv.osv): + _name = "mgmtsystem.review.line" + _description = "Review Line" + _columns = { + 'name': fields.char('Title',size=300, required=True), + 'type': fields.selection((('action','Action'), ('nonconformity','Noncomformity')),'Type'), + 'action_id': fields.many2one('mgmtsystem.action', 'Action', select=True), + 'nonconformity_id': fields.many2one('mgmtsystem.nonconformity', 'Nonconformity', select=True), + 'decision': fields.text('Decision'), + 'review_id': fields.many2one('mgmtsystem.review', 'Review', ondelete='cascade', select=True), + } + +mgmtsystem_review_line() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/mgmtsystem_review/mgmtsystem_review.xml b/mgmtsystem_review/mgmtsystem_review.xml new file mode 100644 index 000000000000..8a38b41d5818 --- /dev/null +++ b/mgmtsystem_review/mgmtsystem_review.xml @@ -0,0 +1,179 @@ + + + + + + + mgmtsystem.review.line.tree + mgmtsystem.review.line + tree + + + + + + + + + + + + + mgmtsystem.review.line.filter + mgmtsystem.review.line + search + + + + + + + + + + + + + mgmtsystem.review.line.form + form + mgmtsystem.review.line + +
+ + + + + + + + + +
+
+
+ + + Review Lines + mgmtsystem.review.line + form + tree,form + + + + + + mgmtsystem.review.tree + mgmtsystem.review + tree + + + + + + + + + + + mgmtsystem.review.filter + mgmtsystem.review + search + + + + + + + + + + + + + + + + mgmtsystem.review.form + form + mgmtsystem.review + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +