[tryton-debian-vcs] tryton-modules-project branch upstream updated. upstream/3.0.0-1-ge1a632f

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Dec 11 13:46:58 UTC 2013


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.git;a=commitdiff;h=upstream/3.0.0-1-ge1a632f

commit e1a632fcef99e94cd30a61fc8ce7926de4992cc4
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Dec 11 12:57:50 2013 +0100

    Adding upstream version 3.0.1.

diff --git a/CHANGELOG b/CHANGELOG
index 19b3011..2143ef9 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.1 - 2013-12-04
+* Bug fixes (see mercurial logs for details)
+
 Version 3.0.0 - 2013-10-21
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 6ef37f4..44aceba 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_project
-Version: 3.0.0
+Version: 3.0.1
 Summary: Tryton module with projects
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/tryton.cfg b/tryton.cfg
index bca3300..ee212c5 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.0.0
+version=3.0.1
 depends:
     company_work_time
     ir
diff --git a/trytond_project.egg-info/PKG-INFO b/trytond_project.egg-info/PKG-INFO
index 5ed9ed2..9bbe356 100644
--- a/trytond_project.egg-info/PKG-INFO
+++ b/trytond_project.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-project
-Version: 3.0.0
+Version: 3.0.1
 Summary: Tryton module with projects
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/work.py b/work.py
index 2584fe0..a62df95 100644
--- a/work.py
+++ b/work.py
@@ -166,17 +166,17 @@ class Work(ModelSQL, ModelView):
         return [('work.active',) + tuple(clause[1:])]
 
     def on_change_with_company(self, name=None):
-        return self.work.company.id
+        return self.work.company.id if self.work else None
 
     @classmethod
     def search_comany(cls, name, clause):
         return [('work.company',) + tuple(clause[1:])]
 
     def on_change_with_timesheet_available(self, name=None):
-        return self.work.timesheet_available
+        return self.work.timesheet_available if self.work else None
 
     def on_change_with_hours(self, name=None):
-        return self.work.hours
+        return self.work.hours if self.work else None
 
     @classmethod
     def get_parent(cls, project_works, name):
-- 
tryton-modules-project



More information about the tryton-debian-vcs mailing list