Browse Source

[IMP] Use widget color and add translation

pull/510/head^2
Maxime Chambreuil 12 years ago
parent
commit
5e54a3cee8
  1. 7
      mgmtsystem_kpi/__openerp__.py
  2. 351
      mgmtsystem_kpi/i18n/mgmtsystem_kpi.pot
  3. 14
      mgmtsystem_kpi/mgmtsystem_kpi_view.xml

7
mgmtsystem_kpi/__openerp__.py

@ -20,7 +20,7 @@
############################################################################## ##############################################################################
{ {
"name" : "Key Performance Indicator", "name" : "Key Performance Indicator",
"version" : "1.0",
"version" : "1.1",
"author" : "Savoir-faire Linux", "author" : "Savoir-faire Linux",
"website" : "http://www.savoirfairelinux.com", "website" : "http://www.savoirfairelinux.com",
"license" : "AGPL-3", "license" : "AGPL-3",
@ -42,10 +42,15 @@ A threshold is a list of ranges and a range is:
* a maximum value (fixed, sql query or python code) * a maximum value (fixed, sql query or python code)
* color (RGB code like #00FF00 for green, #FFA500 for orange, * color (RGB code like #00FF00 for green, #FFA500 for orange,
#FF0000 for red) #FF0000 for red)
This module depends on:
* base_external_dbsource (available in lp:openobject-extension)
* web_color (available in lp:web-addons)
""", """,
"depends" : [ "depends" : [
'mgmtsystem', 'mgmtsystem',
'base_external_dbsource', 'base_external_dbsource',
'web_color',
], ],
"data" : [ "data" : [
'mgmtsystem_kpi_view.xml', 'mgmtsystem_kpi_view.xml',

351
mgmtsystem_kpi/i18n/mgmtsystem_kpi.pot

@ -0,0 +1,351 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * mgmtsystem_kpi
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-04-03 18:36+0000\n"
"PO-Revision-Date: 2013-04-03 18:36+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_kpi
#: view:mgmtsystem.kpi:0
#: field:mgmtsystem.kpi,category_id:0
#: view:mgmtsystem.kpi.category:0
msgid "Category"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
msgid "KPI Computation"
msgstr ""
#. module: mgmtsystem_kpi
#: help:mgmtsystem.kpi.threshold.range,color:0
msgid "RGB code with #"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi.history:0
msgid "KPI History"
msgstr ""
#. module: mgmtsystem_kpi
#: help:mgmtsystem.kpi,kpi_code:0
msgid "SQL code must return the result as 'value' (i.e. 'SELECT 5 AS value')."
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi,kpi_type:0
msgid "KPI Computation Type"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.actions.act_window,name:mgmtsystem_kpi.open_mgmtsystem_kpi_list
#: view:mgmtsystem.kpi:0
msgid "Key Performance Indicators"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
msgid "Group By..."
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi.threshold,valid:0
#: field:mgmtsystem.kpi.threshold.range,valid:0
msgid "Valid"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi,kpi_type:0
#: selection:mgmtsystem.kpi.threshold.range,max_type:0
#: selection:mgmtsystem.kpi.threshold.range,min_type:0
msgid "SQL - Local DB"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.model,name:mgmtsystem_kpi.model_mgmtsystem_kpi_category
msgid "KPI Category"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi,periodicity_uom:0
msgid "Periodicity UoM"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
msgid "Type"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi,name:0
#: field:mgmtsystem.kpi.category,name:0
#: field:mgmtsystem.kpi.history,name:0
#: field:mgmtsystem.kpi.threshold,name:0
#: field:mgmtsystem.kpi.threshold.range,name:0
msgid "Name"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi,periodicity_uom:0
msgid "Week"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
#: field:mgmtsystem.kpi,description:0
#: field:mgmtsystem.kpi.category,description:0
msgid "Description"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi,kpi_type:0
msgid "Python"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi.threshold.range,max_code:0
msgid "Maximum Computation Code"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi.threshold.range,min_type:0
msgid "Min Type"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.actions.act_window,name:mgmtsystem_kpi.open_mgmtsystem_threshold_range_list
#: model:ir.ui.menu,name:mgmtsystem_kpi.menu_mgmtsystem_configuration_kpi_range
#: view:mgmtsystem.kpi.threshold:0
#: field:mgmtsystem.kpi.threshold,range_ids:0
#: view:mgmtsystem.kpi.threshold.range:0
msgid "Ranges"
msgstr ""
#. module: mgmtsystem_kpi
#: code:addons/mgmtsystem_kpi/mgmtsystem_kpi.py:218
#, python-format
msgid "2 of your ranges are overlapping!"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.ui.menu,name:mgmtsystem_kpi.menu_mgmtsystem_configuration_kpi_dbsource
msgid "Data Sources"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi.threshold.range,max_type:0
msgid "Max Type"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
msgid "Only active KPIs are computed by the scheduler based on the periodicity configuration."
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
#: field:mgmtsystem.kpi,active:0
msgid "Active"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.model,name:mgmtsystem_kpi.model_mgmtsystem_kpi_threshold
msgid "KPI Threshold"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi,periodicity_uom:0
msgid "Day"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi.threshold.range,max_type:0
#: selection:mgmtsystem.kpi.threshold.range,min_type:0
msgid "Fixed value"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.model,name:mgmtsystem_kpi.model_mgmtsystem_kpi_threshold_range
msgid "KPI Threshold Range"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi.threshold.range,min_code:0
msgid "Minimum Computation Code"
msgstr ""
#. module: mgmtsystem_kpi
#: code:addons/mgmtsystem_kpi/mgmtsystem_kpi.py:218
#, python-format
msgid "Please make sure your ranges do not overlap!"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi,kpi_code:0
msgid "KPI Code"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi,periodicity_uom:0
msgid "Hour"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi.history,date:0
msgid "Execution Date"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi.threshold.range:0
#: field:mgmtsystem.kpi.threshold.range,max_fixed_value:0
#: field:mgmtsystem.kpi.threshold.range,max_value:0
msgid "Maximum"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
msgid "Compute KPI Now"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi.threshold.range,min_type:0
msgid "SQL - Externa DB"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.model,name:mgmtsystem_kpi.model_mgmtsystem_kpi_history
msgid "History of the KPI"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi,next_execution_date:0
msgid "Next execution date"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi,dbsource_id:0
#: field:mgmtsystem.kpi.threshold.range,max_dbsource_id:0
#: field:mgmtsystem.kpi.threshold.range,min_dbsource_id:0
msgid "External DB Source"
msgstr ""
#. module: mgmtsystem_kpi
#: help:mgmtsystem.kpi,active:0
msgid "Only active KPIs will be updated by the scheduler based on the periodicity configuration."
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.ui.menu,name:mgmtsystem_kpi.menu_mgmtsystem_configuration_kpi
#: model:ir.ui.menu,name:mgmtsystem_kpi.menu_mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
#: field:mgmtsystem.kpi.history,kpi_id:0
msgid "KPI"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
#: field:mgmtsystem.kpi,history_ids:0
msgid "History"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi,periodicity:0
msgid "Periodicity"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi.history,color:0
#: field:mgmtsystem.kpi.threshold.range,color:0
msgid "Color"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi,kpi_type:0
#: selection:mgmtsystem.kpi.threshold.range,max_type:0
msgid "SQL - External DB"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi.threshold.range,max_type:0
#: selection:mgmtsystem.kpi.threshold.range,min_type:0
msgid "Python Code"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi.threshold.range:0
msgid "Range"
msgstr ""
#. module: mgmtsystem_kpi
#: selection:mgmtsystem.kpi,periodicity_uom:0
msgid "Month"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi,value:0
#: field:mgmtsystem.kpi.history,value:0
msgid "Value"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi.threshold.range:0
#: field:mgmtsystem.kpi.threshold.range,min_fixed_value:0
#: field:mgmtsystem.kpi.threshold.range,min_value:0
msgid "Minimum"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.actions.act_window,name:mgmtsystem_kpi.open_mgmtsystem_category_list
#: model:ir.ui.menu,name:mgmtsystem_kpi.menu_mgmtsystem_configuration_kpi_category
#: view:mgmtsystem.kpi.category:0
msgid "Categories"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
msgid "Computation"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi,threshold_id:0
#: view:mgmtsystem.kpi.threshold:0
msgid "Threshold"
msgstr ""
#. module: mgmtsystem_kpi
#: view:mgmtsystem.kpi.threshold:0
#: field:mgmtsystem.kpi.threshold,kpi_ids:0
msgid "KPIs"
msgstr ""
#. module: mgmtsystem_kpi
#: field:mgmtsystem.kpi.threshold,invalid_message:0
#: field:mgmtsystem.kpi.threshold.range,invalid_message:0
msgid "Message"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.actions.act_window,name:mgmtsystem_kpi.open_mgmtsystem_threshold_list
#: model:ir.ui.menu,name:mgmtsystem_kpi.menu_mgmtsystem_configuration_kpi_threshold
#: view:mgmtsystem.kpi.threshold:0
#: view:mgmtsystem.kpi.threshold.range:0
#: field:mgmtsystem.kpi.threshold.range,threshold_ids:0
msgid "Thresholds"
msgstr ""
#. module: mgmtsystem_kpi
#: model:ir.model,name:mgmtsystem_kpi.model_mgmtsystem_kpi
#: view:mgmtsystem.kpi:0
msgid "Key Performance Indicator"
msgstr ""

14
mgmtsystem_kpi/mgmtsystem_kpi_view.xml

@ -7,7 +7,6 @@
<record id="view_mgmtsystem_kpi_tree" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_tree" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.tree</field> <field name="name">mgmtsystem.kpi.tree</field>
<field name="model">mgmtsystem.kpi</field> <field name="model">mgmtsystem.kpi</field>
<field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Key Performance Indicators"> <tree string="Key Performance Indicators">
<field name="name"/> <field name="name"/>
@ -21,7 +20,6 @@
<record id="view_mgmtsystem_kpi_filter" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_filter" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.filter</field> <field name="name">mgmtsystem.kpi.filter</field>
<field name="model">mgmtsystem.kpi</field> <field name="model">mgmtsystem.kpi</field>
<field name="type">search</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search string="KPI"> <search string="KPI">
<group> <group>
@ -42,7 +40,6 @@
<record id="view_mgmtsystem_kpi_form" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_form" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.form</field> <field name="name">mgmtsystem.kpi.form</field>
<field name="model">mgmtsystem.kpi</field> <field name="model">mgmtsystem.kpi</field>
<field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Key Performance Indicator"> <form string="Key Performance Indicator">
<group col="6" colspan="6"> <group col="6" colspan="6">
@ -100,13 +97,12 @@
<record id="view_mgmtsystem_kpi_history_tree" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_history_tree" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.history.tree</field> <field name="name">mgmtsystem.kpi.history.tree</field>
<field name="model">mgmtsystem.kpi.history</field> <field name="model">mgmtsystem.kpi.history</field>
<field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="KPI History"> <tree string="KPI History">
<field name="name"/> <field name="name"/>
<field name="date"/> <field name="date"/>
<field name="value"/> <field name="value"/>
<field name="color"/>
<field name="color" widget="color"/>
</tree> </tree>
</field> </field>
</record> </record>
@ -124,7 +120,6 @@
<record id="view_mgmtsystem_kpi_category_tree" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_category_tree" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.category.tree</field> <field name="name">mgmtsystem.kpi.category.tree</field>
<field name="model">mgmtsystem.kpi.category</field> <field name="model">mgmtsystem.kpi.category</field>
<field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Categories"> <tree string="Categories">
<field name="name"/> <field name="name"/>
@ -135,7 +130,6 @@
<record id="view_mgmtsystem_kpi_category_form" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_category_form" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.category.form</field> <field name="name">mgmtsystem.kpi.category.form</field>
<field name="model">mgmtsystem.kpi.category</field> <field name="model">mgmtsystem.kpi.category</field>
<field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Category"> <form string="Category">
<field name="name"/> <field name="name"/>
@ -165,7 +159,6 @@
<record id="view_mgmtsystem_kpi_threshold_tree" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_threshold_tree" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.threshold.tree</field> <field name="name">mgmtsystem.kpi.threshold.tree</field>
<field name="model">mgmtsystem.kpi.threshold</field> <field name="model">mgmtsystem.kpi.threshold</field>
<field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Thresholds"> <tree string="Thresholds">
<field name="name"/> <field name="name"/>
@ -177,7 +170,6 @@
<record id="view_mgmtsystem_kpi_threshold_form" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_threshold_form" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.threshold.form</field> <field name="name">mgmtsystem.kpi.threshold.form</field>
<field name="model">mgmtsystem.kpi.threshold</field> <field name="model">mgmtsystem.kpi.threshold</field>
<field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Threshold"> <form string="Threshold">
<field name="name"/> <field name="name"/>
@ -215,13 +207,12 @@
<record id="view_mgmtsystem_kpi_threshold_range_tree" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_threshold_range_tree" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.threshold.range.tree</field> <field name="name">mgmtsystem.kpi.threshold.range.tree</field>
<field name="model">mgmtsystem.kpi.threshold.range</field> <field name="model">mgmtsystem.kpi.threshold.range</field>
<field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Ranges"> <tree string="Ranges">
<field name="name"/> <field name="name"/>
<field name="min_value"/> <field name="min_value"/>
<field name="max_value"/> <field name="max_value"/>
<field name="color"/>
<field name="color" widget="color"/>
<field name="invalid_message"/> <field name="invalid_message"/>
</tree> </tree>
</field> </field>
@ -230,7 +221,6 @@
<record id="view_mgmtsystem_kpi_threshold_range_form" model="ir.ui.view"> <record id="view_mgmtsystem_kpi_threshold_range_form" model="ir.ui.view">
<field name="name">mgmtsystem.kpi.threshold.range.form</field> <field name="name">mgmtsystem.kpi.threshold.range.form</field>
<field name="model">mgmtsystem.kpi.threshold.range</field> <field name="model">mgmtsystem.kpi.threshold.range</field>
<field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Range"> <form string="Range">
<field name="name"/> <field name="name"/>

Loading…
Cancel
Save