savoirfairelinux-openerp team mailing list archive
-
savoirfairelinux-openerp team
-
Mailing list archive
-
Message #01051
[Merge] lp:~savoirfairelinux-openerp/openerp-program/add_program_indicator into lp:~savoirfairelinux-openerp/openerp-program/program
David Cormier (Savoir-faire Linux) has proposed merging lp:~savoirfairelinux-openerp/openerp-program/add_program_indicator into lp:~savoirfairelinux-openerp/openerp-program/program.
Requested reviews:
Joao Alfredo Gama Batista (joao-gama)
For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-program/add_program_indicator/+merge/209785
Add a program_indicator module
--
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-program/add_program_indicator/+merge/209785
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openerp-program/program.
=== added directory 'program_indicator'
=== added file 'program_indicator/__init__.py'
--- program_indicator/__init__.py 1970-01-01 00:00:00 +0000
+++ program_indicator/__init__.py 2014-03-06 21:15:22 +0000
@@ -0,0 +1,23 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# This module copyright (C) 2013 Savoir-faire Linux
+# (<http://www.savoirfairelinux.com>).
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from . import program
=== added file 'program_indicator/__openerp__.py'
--- program_indicator/__openerp__.py 1970-01-01 00:00:00 +0000
+++ program_indicator/__openerp__.py 2014-03-06 21:15:22 +0000
@@ -0,0 +1,52 @@
+# -*- encoding: utf-8 -*-
+############################################################################
+#
+# OpenERP, Open Source Management Solution
+# This module copyright (C) 2013 Savoir-faire Linux
+# (<http://www.savoirfairelinux.com>).
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+############################################################################
+
+{
+ 'name': 'Program Indicator',
+ 'version': '0.1',
+ 'author': 'Savoir-faire Linux',
+ 'maintainer': 'Savoir-faire Linux',
+ 'website': 'http://www.savoirfairelinux.com',
+ 'category': 'Customer Relationship Management',
+ 'summary': 'Program Indicator',
+ 'description': """
+Program Indicator
+==================
+
+Contributeurs
+-------------
+* David Cormier (david.cormier@xxxxxxxxxxxxxxxxxxxx)
+""",
+ 'depends': [
+ 'program'
+ ],
+ 'external_dependencies': {},
+ 'data': [
+ 'program_indicator_view.xml',
+ ],
+ 'demo': [
+ ],
+ 'test': [],
+ 'installable': True,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'program_indicator/i18n'
=== added file 'program_indicator/i18n/fr.po'
--- program_indicator/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ program_indicator/i18n/fr.po 2014-03-06 21:15:22 +0000
@@ -0,0 +1,54 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * program_indicator
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-03-06 20:45+0000\n"
+"PO-Revision-Date: 2014-03-06 20:45+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: program_indicator
+#: view:program.indicator:0
+msgid "Indicator"
+msgstr "Indicateur"
+
+#. module: program_indicator
+#: field:program.indicator,name:0
+msgid "Name"
+msgstr "Libellé"
+
+#. module: program_indicator
+#: field:program.indicator,generic:0
+msgid "Generic"
+msgstr "Générique"
+
+#. module: program_indicator
+#: field:program.indicator,risk_hypothesis:0
+msgid "Risk Hypothesis"
+msgstr "Risques et hypothèses"
+
+#. module: program_indicator
+#: model:ir.model,name:program_indicator.model_program_indicator
+msgid "program.indicator"
+msgstr ""
+
+#. module: program_indicator
+#: model:ir.actions.act_window,name:program_indicator.action_program_indicator_tree
+#: model:ir.ui.menu,name:program_indicator.menu_program_indicator_action
+#: model:ir.ui.menu,name:program_indicator.menu_program_indicator_action_action
+msgid "Indicators"
+msgstr "Indicateurs"
+
+#. module: program_indicator
+#: field:program.indicator,verification_means:0
+msgid "Verification means"
+msgstr "Moyens de vérification"
+
=== added file 'program_indicator/i18n/program_indicator.pot'
--- program_indicator/i18n/program_indicator.pot 1970-01-01 00:00:00 +0000
+++ program_indicator/i18n/program_indicator.pot 2014-03-06 21:15:22 +0000
@@ -0,0 +1,54 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * program_indicator
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-03-06 20:45+0000\n"
+"PO-Revision-Date: 2014-03-06 20:45+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: program_indicator
+#: view:program.indicator:0
+msgid "Indicator"
+msgstr ""
+
+#. module: program_indicator
+#: field:program.indicator,name:0
+msgid "Name"
+msgstr ""
+
+#. module: program_indicator
+#: field:program.indicator,generic:0
+msgid "Generic"
+msgstr ""
+
+#. module: program_indicator
+#: field:program.indicator,risk_hypothesis:0
+msgid "Risk Hypothesis"
+msgstr ""
+
+#. module: program_indicator
+#: model:ir.model,name:program_indicator.model_program_indicator
+msgid "program.indicator"
+msgstr ""
+
+#. module: program_indicator
+#: model:ir.actions.act_window,name:program_indicator.action_program_indicator_tree
+#: model:ir.ui.menu,name:program_indicator.menu_program_indicator_action
+#: model:ir.ui.menu,name:program_indicator.menu_program_indicator_action_action
+msgid "Indicators"
+msgstr ""
+
+#. module: program_indicator
+#: field:program.indicator,verification_means:0
+msgid "Verification means"
+msgstr ""
+
=== added file 'program_indicator/program.py'
--- program_indicator/program.py 1970-01-01 00:00:00 +0000
+++ program_indicator/program.py 2014-03-06 21:15:22 +0000
@@ -0,0 +1,51 @@
+# -*- coding: utf-8 -*-
+
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2014 Savoir-faire Linux (<www.savoirfairelinux.com>).
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.osv import fields, orm
+
+
+class program_indicator(orm.Model):
+
+ _name = 'program.indicator'
+
+ _columns = {
+ 'name': fields.char(
+ 'Name',
+ size=128,
+ required=True,
+ select=True,
+ ),
+
+ 'generic': fields.boolean(
+ 'Generic',
+ required=False
+ ),
+
+ 'verification_means': fields.text(
+ 'Verification means'
+ ),
+
+ 'risk_hypothesis': fields.text(
+ 'Risk Hypothesis'
+ ),
+
+ }
=== added file 'program_indicator/program_indicator_view.xml'
--- program_indicator/program_indicator_view.xml 1970-01-01 00:00:00 +0000
+++ program_indicator/program_indicator_view.xml 2014-03-06 21:15:22 +0000
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<openerp>
+ <data>
+
+ <record id="view_program_indicator_form" model="ir.ui.view">
+ <field name="name">Program Indicator Form</field>
+ <field name="model">program.indicator</field>
+ <field name="arch" type="xml">
+ <form string="Indicator" version="7.0">
+ <sheet>
+ <group>
+ <field name="name" />
+ </group>
+ <group>
+ <field name="generic" />
+ </group>
+ <group>
+ <field name="verification_means" />
+ </group>
+ <group>
+ <field name="risk_hypothesis" />
+ </group>
+ </sheet>
+ </form>
+ </field>
+ </record>
+
+ <record id="view_program_indicator_tree" model="ir.ui.view">
+ <field name="name">Program Indicator Tree</field>
+ <field name="model">program.indicator</field>
+ <field name="arch" type="xml">
+ <tree string="Indicator" version="7.0">
+ <field name="name" />
+ <field name="generic" />
+ </tree>
+ </field>
+ </record>
+
+ <record id="action_program_indicator_tree" model="ir.actions.act_window">
+ <field name="name">Indicators</field>
+ <field name="res_model">program.indicator</field>
+ <field name="view_type">form</field>
+ <field name="view_mode">tree,form</field>
+ <field name="view_id" ref="view_program_indicator_tree" />
+ <field name="target">current</field>
+ </record>
+
+ <menuitem
+ id="menu_program_indicator_action"
+ name="Indicators"
+ parent="program.menu_program"
+ groups="program.program_action_user"
+ sequence="1" />
+
+ <menuitem
+ id="menu_program_indicator_action_action"
+ name="Indicators"
+ parent="menu_program_indicator_action"
+ action="action_program_indicator_tree"
+ groups="program.program_action_user"
+ sequence="1" />
+ </data>
+</openerp>
Follow ups