[tryton-debian-vcs] tryton-modules-project-plan branch upstream updated. upstream/3.2.0-1-ga84459a

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Thu Oct 23 12:17:20 UTC 2014


The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-project-plan.git;a=commitdiff;h=upstream/3.2.0-1-ga84459a

commit a84459a28161ccb8ebfa45e0d5f7f0309a85c52b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Oct 21 11:29:18 2014 +0200

    Adding upstream version 3.4.0.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/CHANGELOG b/CHANGELOG
index 47b3f54..49d2897 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.4.0 - 2014-10-20
+* Bug fixes (see mercurial logs for details)
+
 Version 3.2.0 - 2014-04-21
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 1966583..c92ac14 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_project_plan
-Version: 3.2.0
+Version: 3.4.0
 Summary: Tryton module to add planning capabilities on projects
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/3.2/
+Download-URL: http://downloads.tryton.org/3.4/
 Description: trytond_project_plan
         ====================
         
diff --git a/allocation.py b/allocation.py
index cb75df7..72b51f2 100644
--- a/allocation.py
+++ b/allocation.py
@@ -1,7 +1,9 @@
 #This file is part of Tryton.  The COPYRIGHT file at the top level of
 #this repository contains the full copyright notices and license terms.
+from trytond import backend
 from trytond.model import ModelView, ModelSQL, fields
 from trytond.pool import Pool
+from trytond.transaction import Transaction
 
 __all__ = ['Allocation']
 
@@ -11,18 +13,22 @@ class Allocation(ModelSQL, ModelView):
     __name__ = 'project.allocation'
     _rec_name = 'employee'
     employee = fields.Many2One('company.employee', 'Employee', required=True,
-            select=True)
+            select=True, ondelete='CASCADE')
     work = fields.Many2One('project.work', 'Work', required=True,
-            select=True)
-    percentage = fields.Float('Percentage', digits=(16, 2), required=True)
+            select=True, ondelete='CASCADE')
+    percentage = fields.Float('Percentage', digits=(16, 2), required=True,
+        domain=[('percentage', '>', 0.0)])
 
     @classmethod
-    def __setup__(cls):
-        super(Allocation, cls).__setup__()
-        cls._sql_constraints += [
-            ('percentage_positive', 'CHECK(percentage > 0)',
-                'Percentage must be greater than zero')
-            ]
+    def __register__(cls, module_name):
+        TableHandler = backend.get('TableHandler')
+        cursor = Transaction().cursor
+
+        super(Allocation, cls).__register__(module_name)
+
+        # Migration from 3.2:
+        table = TableHandler(cursor, cls, module_name)
+        table.drop_constraint('percentage_positive')
 
     @staticmethod
     def default_percentage():
diff --git a/locale/bg_BG.po b/locale/bg_BG.po
index b460bcf..7a4b526 100644
--- a/locale/bg_BG.po
+++ b/locale/bg_BG.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr ""
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr "Създадено на"
diff --git a/locale/ca_ES.po b/locale/ca_ES.po
index 5213b29..118476e 100644
--- a/locale/ca_ES.po
+++ b/locale/ca_ES.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr "El percentatge ha de ser més gran que zero."
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr "Data creació"
diff --git a/locale/cs_CZ.po b/locale/cs_CZ.po
index aa10f8b..84cf7f0 100644
--- a/locale/cs_CZ.po
+++ b/locale/cs_CZ.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr ""
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr ""
diff --git a/locale/de_DE.po b/locale/de_DE.po
index 00a312e..926c7be 100644
--- a/locale/de_DE.po
+++ b/locale/de_DE.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr "Prozentsatz muss größer als 0 sein."
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr "Erstellungsdatum"
@@ -32,7 +28,7 @@ msgstr "Name"
 
 msgctxt "field:project.allocation,work:"
 msgid "Work"
-msgstr "Arbeit"
+msgstr "Tätigkeit"
 
 msgctxt "field:project.allocation,write_date:"
 msgid "Write Date"
@@ -96,7 +92,7 @@ msgstr "Zuordnungen"
 
 msgctxt "field:project.work,back_leveling_delay:"
 msgid "Back Leveling Delay"
-msgstr "Verzögerung Abgleich"
+msgstr "Verzögerung Abgleich Rückstand"
 
 msgctxt "field:project.work,constraint_finish_date:"
 msgid "Constraint Finish"
@@ -188,4 +184,4 @@ msgstr "Zuordnungen"
 
 msgctxt "view:project.work:"
 msgid "Plan"
-msgstr "Plan"
+msgstr "Planung"
diff --git a/locale/es_AR.po b/locale/es_AR.po
index a432d56..6ff3fcb 100644
--- a/locale/es_AR.po
+++ b/locale/es_AR.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr "El porcentaje debe ser mayor que cero"
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr "Fecha creación"
diff --git a/locale/es_CO.po b/locale/es_CO.po
index 78254af..3be9690 100644
--- a/locale/es_CO.po
+++ b/locale/es_CO.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr "El porcentaje debe ser mayor que cero."
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr "Fecha de Creación"
diff --git a/locale/es_CO.po b/locale/es_EC.po
similarity index 81%
copy from locale/es_CO.po
copy to locale/es_EC.po
index 78254af..e211829 100644
--- a/locale/es_CO.po
+++ b/locale/es_EC.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr "El porcentaje debe ser mayor que cero."
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr "Fecha de Creación"
@@ -32,7 +28,7 @@ msgstr "Nombre"
 
 msgctxt "field:project.allocation,work:"
 msgid "Work"
-msgstr "Tarea"
+msgstr "Trabajo"
 
 msgctxt "field:project.allocation,write_date:"
 msgid "Write Date"
@@ -76,43 +72,43 @@ msgstr "Modificado por Usuario"
 
 msgctxt "field:project.work,actual_finish_date:"
 msgid "Actual Finish"
-msgstr "Fin Actual"
+msgstr "Finalización Real"
 
 msgctxt "field:project.work,actual_finish_time:"
 msgid "Actual Finish Time"
-msgstr "Tiempo del Actual Fin"
+msgstr "Hora de Finalización Real"
 
 msgctxt "field:project.work,actual_start_date:"
 msgid "Actual Start"
-msgstr "Comienzo Actual"
+msgstr "Inicio Real"
 
 msgctxt "field:project.work,actual_start_time:"
 msgid "Actual Start Time"
-msgstr "Tiempo del Actual Comienzo"
+msgstr "Hora de Inicio Real"
 
 msgctxt "field:project.work,allocations:"
 msgid "Allocations"
-msgstr "Cuotas"
+msgstr "Asignaciones"
 
 msgctxt "field:project.work,back_leveling_delay:"
 msgid "Back Leveling Delay"
-msgstr "Retardo de Escalamiento"
+msgstr "Retraso por Redistribución"
 
 msgctxt "field:project.work,constraint_finish_date:"
 msgid "Constraint Finish"
-msgstr "Final de la Restricción"
+msgstr "Finalización Límite"
 
 msgctxt "field:project.work,constraint_finish_time:"
 msgid "Constraint  Finish Time"
-msgstr "Tiempo Final de la Restricción"
+msgstr "Hora de Finalización Límite"
 
 msgctxt "field:project.work,constraint_start_date:"
 msgid "Constraint Start"
-msgstr "Comienzo de la Restricción"
+msgstr "Inicio Límite"
 
 msgctxt "field:project.work,constraint_start_time:"
 msgid "Constraint Start Time"
-msgstr "Tiempo del Comienzo de la Restricción"
+msgstr "Hora de Inicio Límite"
 
 msgctxt "field:project.work,duration:"
 msgid "Duration"
@@ -120,39 +116,39 @@ msgstr "Duración"
 
 msgctxt "field:project.work,early_finish_date:"
 msgid "Early Finish"
-msgstr "Finalizar Temprano"
+msgstr "Finalización Anticipada"
 
 msgctxt "field:project.work,early_finish_time:"
 msgid "Early Finish Time"
-msgstr "Tiempo de Finalización Temprana"
+msgstr "Hora de Finalización Anticipada"
 
 msgctxt "field:project.work,early_start_date:"
 msgid "Early Start"
-msgstr "Iniciar Temprano"
+msgstr "Inicio Anticipado"
 
 msgctxt "field:project.work,early_start_time:"
 msgid "Early Start Time"
-msgstr "Tiempo de Inicio Temprano"
+msgstr "Hora de Inicio Anticipado"
 
 msgctxt "field:project.work,late_finish_date:"
 msgid "Late Finish"
-msgstr "Final Tardío"
+msgstr "Finalización con Retraso"
 
 msgctxt "field:project.work,late_finish_time:"
 msgid "Late Finish Time"
-msgstr "Tiempo del Tardío Final"
+msgstr "Hora de Finalización con Retraso"
 
 msgctxt "field:project.work,late_start_date:"
 msgid "Late Start"
-msgstr "Comienzo Tardío"
+msgstr "Inicio con Retraso"
 
 msgctxt "field:project.work,late_start_time:"
 msgid "Late Start Time"
-msgstr "Tiempo del Tardío Comienzo"
+msgstr "Hora de Inicio con Retraso"
 
 msgctxt "field:project.work,leveling_delay:"
 msgid "Leveling Delay"
-msgstr "Retardo de Nivel"
+msgstr "Retraso por Nivelación"
 
 msgctxt "field:project.work,predecessors:"
 msgid "Predecessors"
@@ -168,7 +164,7 @@ msgstr "Niveles de Tareas"
 
 msgctxt "model:project.allocation,name:"
 msgid "Allocation"
-msgstr "Cuota"
+msgstr "Asignación"
 
 msgctxt "model:project.predecessor_successor,name:"
 msgid "Predecessor - Successor"
@@ -176,16 +172,16 @@ msgstr "Predecesor - Sucesor"
 
 msgctxt "view:project.allocation:"
 msgid "Allocation"
-msgstr "Cuota"
+msgstr "Asignación"
 
 msgctxt "view:project.allocation:"
 msgid "Allocations"
-msgstr "Cuotas"
+msgstr "Asignaciones"
 
 msgctxt "view:project.work:"
 msgid "Allocations"
-msgstr "Cuotas"
+msgstr "Asignaciones"
 
 msgctxt "view:project.work:"
 msgid "Plan"
-msgstr "Plan"
+msgstr "Planificación"
diff --git a/locale/es_ES.po b/locale/es_ES.po
index e470ad5..9fc2fed 100644
--- a/locale/es_ES.po
+++ b/locale/es_ES.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr "El porcentaje debe ser mayor que cero."
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr "Fecha creación"
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index 4ec0006..da1513d 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr "Le pourcentage doit être supérieur à zéro"
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr "Date de création"
diff --git a/locale/nl_NL.po b/locale/nl_NL.po
index 6da7003..ed6e201 100644
--- a/locale/nl_NL.po
+++ b/locale/nl_NL.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr ""
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr ""
diff --git a/locale/ru_RU.po b/locale/ru_RU.po
index 4bd4607..c653029 100644
--- a/locale/ru_RU.po
+++ b/locale/ru_RU.po
@@ -2,10 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr "Процент должен быть больше нуля"
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
 msgstr "Дата создания"
diff --git a/locale/sl_SI.po b/locale/sl_SI.po
index 0846705..e505fbb 100644
--- a/locale/sl_SI.po
+++ b/locale/sl_SI.po
@@ -2,17 +2,13 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-msgctxt "error:project.allocation:"
-msgid "Percentage must be greater than zero"
-msgstr "Odstotek mora biti večji od nič"
-
 msgctxt "field:project.allocation,create_date:"
 msgid "Create Date"
-msgstr "Ustvarjeno"
+msgstr "Izdelano"
 
 msgctxt "field:project.allocation,create_uid:"
 msgid "Create User"
-msgstr "Ustvaril"
+msgstr "Izdelal"
 
 msgctxt "field:project.allocation,employee:"
 msgid "Employee"
@@ -44,11 +40,11 @@ msgstr "Zapisal"
 
 msgctxt "field:project.predecessor_successor,create_date:"
 msgid "Create Date"
-msgstr "Ustvarjeno"
+msgstr "Izdelano"
 
 msgctxt "field:project.predecessor_successor,create_uid:"
 msgid "Create User"
-msgstr "Ustvaril"
+msgstr "Izdelal"
 
 msgctxt "field:project.predecessor_successor,id:"
 msgid "ID"
diff --git a/tryton.cfg b/tryton.cfg
index 67977fc..c9ac5ed 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.2.0
+version=3.4.0
 depends:
     ir
     company
diff --git a/trytond_project_plan.egg-info/PKG-INFO b/trytond_project_plan.egg-info/PKG-INFO
index 9d21c35..fa94390 100644
--- a/trytond_project_plan.egg-info/PKG-INFO
+++ b/trytond_project_plan.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-project-plan
-Version: 3.2.0
+Version: 3.4.0
 Summary: Tryton module to add planning capabilities on projects
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/3.2/
+Download-URL: http://downloads.tryton.org/3.4/
 Description: trytond_project_plan
         ====================
         
diff --git a/trytond_project_plan.egg-info/SOURCES.txt b/trytond_project_plan.egg-info/SOURCES.txt
index 8d35729..9fd5a7e 100644
--- a/trytond_project_plan.egg-info/SOURCES.txt
+++ b/trytond_project_plan.egg-info/SOURCES.txt
@@ -10,9 +10,27 @@ tryton.cfg
 work.xml
 ./__init__.py
 ./allocation.py
+./allocation.xml
+./tryton.cfg
 ./work.py
+./work.xml
+./locale/bg_BG.po
+./locale/ca_ES.po
+./locale/cs_CZ.po
+./locale/de_DE.po
+./locale/es_AR.po
+./locale/es_CO.po
+./locale/es_EC.po
+./locale/es_ES.po
+./locale/fr_FR.po
+./locale/nl_NL.po
+./locale/ru_RU.po
+./locale/sl_SI.po
 ./tests/__init__.py
 ./tests/test_project_plan.py
+./view/allocation_form.xml
+./view/allocation_tree.xml
+./view/work_form.xml
 doc/index.rst
 locale/bg_BG.po
 locale/ca_ES.po
@@ -20,6 +38,7 @@ locale/cs_CZ.po
 locale/de_DE.po
 locale/es_AR.po
 locale/es_CO.po
+locale/es_EC.po
 locale/es_ES.po
 locale/fr_FR.po
 locale/nl_NL.po
diff --git a/trytond_project_plan.egg-info/requires.txt b/trytond_project_plan.egg-info/requires.txt
index 1cb83c1..95e0444 100644
--- a/trytond_project_plan.egg-info/requires.txt
+++ b/trytond_project_plan.egg-info/requires.txt
@@ -1,4 +1,4 @@
-trytond_company >= 3.2, < 3.3
-trytond_project >= 3.2, < 3.3
-trytond_timesheet >= 3.2, < 3.3
-trytond >= 3.2, < 3.3
\ No newline at end of file
+trytond_company >= 3.4, < 3.5
+trytond_project >= 3.4, < 3.5
+trytond_timesheet >= 3.4, < 3.5
+trytond >= 3.4, < 3.5
\ No newline at end of file
-- 
tryton-modules-project-plan



More information about the tryton-debian-vcs mailing list