[tryton-debian-vcs] tryton-modules-project-plan branch debian updated. debian/4.4.0-2-2-g3128d77

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Thu Aug 17 12:37:49 UTC 2017


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

commit 3128d7765c10337457eb1422665d7a3cd7c3851a
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Thu Aug 17 11:56:53 2017 +0200

    Releasing debian version 4.4.1-1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/debian/changelog b/debian/changelog
index 3c322a5..266f24c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-project-plan (4.4.1-1) unstable; urgency=medium
+
+  * Merging upstream version 4.4.1.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Thu, 17 Aug 2017 11:56:53 +0200
+
 tryton-modules-project-plan (4.4.0-2) unstable; urgency=medium
 
   * Change the maintainer address to tryton-debian at lists.alioth.debian.org
commit 66805963f3401aaf75d134cb586b5ecc30bd47d5
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Thu Aug 17 11:56:53 2017 +0200

    Merging upstream version 4.4.1.

diff --git a/CHANGELOG b/CHANGELOG
index c0b5345..f4b0fd3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.4.1 - 2017-08-08
+* Bug fixes (see mercurial logs for details)
+
 Version 4.4.0 - 2017-05-01
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index a21c07c..9cbb5bd 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_project_plan
-Version: 4.4.0
+Version: 4.4.1
 Summary: Tryton module to add planning capabilities on projects
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/allocation.py b/allocation.py
index 4bcb43a..5163680 100644
--- a/allocation.py
+++ b/allocation.py
@@ -10,7 +10,6 @@ __all__ = ['Allocation']
 class Allocation(ModelSQL, ModelView):
     'Allocation'
     __name__ = 'project.allocation'
-    _rec_name = 'employee'
     employee = fields.Many2One('company.employee', 'Employee', required=True,
             select=True, ondelete='CASCADE')
     work = fields.Many2One('project.work', 'Work', required=True,
@@ -32,6 +31,13 @@ class Allocation(ModelSQL, ModelView):
     def default_percentage():
         return 100
 
+    def get_rec_name(self, name):
+        return self.employee.rec_name
+
+    @classmethod
+    def search_rec_name(cls, name, clause):
+        return [('employee',) + tuple(clause[1:])]
+
     @classmethod
     def write(cls, *args):
         Work = Pool().get('project.work')
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..8bfd5a1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff --git a/tryton.cfg b/tryton.cfg
index ba6ec3c..0b273fa 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.4.0
+version=4.4.1
 depends:
     ir
     company
diff --git a/trytond_project_plan.egg-info/PKG-INFO b/trytond_project_plan.egg-info/PKG-INFO
index 0637f02..a9717ca 100644
--- a/trytond_project_plan.egg-info/PKG-INFO
+++ b/trytond_project_plan.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-project-plan
-Version: 4.4.0
+Version: 4.4.1
 Summary: Tryton module to add planning capabilities on projects
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/work.py b/work.py
index f9ca0b9..e972c18 100644
--- a/work.py
+++ b/work.py
@@ -110,14 +110,14 @@ class Work:
                     leafs.add(work.id)
 
                 total_allocation = 0
+                effort = work.effort_duration or datetime.timedelta()
                 if not work.allocations:
-                    durations[work.id] = (work.effort_duration
-                        or datetime.timedelta())
+                    durations[work.id] = effort
                     continue
                 for allocation in work.allocations:
                     total_allocation += allocation.percentage
                 durations[work.id] = datetime.timedelta(
-                    seconds=work.effort_duration.total_seconds()
+                    seconds=effort.total_seconds()
                     / (total_allocation / 100.0))
 
             while leafs:
-- 
tryton-modules-project-plan



More information about the tryton-debian-vcs mailing list