[tryton-debian-vcs] tryton-modules-project-invoice branch upstream updated. upstream/4.0.1-1-g1baa0d3
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Tue Nov 8 09:31:25 UTC 2016
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-invoice.git;a=commitdiff;h=upstream/4.0.1-1-g1baa0d3
commit 1baa0d391f159129c3ddd601e0693435a9162ff7
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Nov 8 09:42:43 2016 +0100
Adding upstream version 4.0.2.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index 8b2187e..50dc293 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.2 - 2016-11-06
+* Bug fixes (see mercurial logs for details)
+
Version 4.0.1 - 2016-05-11
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 8003244..81d3312 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_project_invoice
-Version: 4.0.1
+Version: 4.0.2
Summary: Tryton module to invoice projects
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton.cfg b/tryton.cfg
index fb70f6d..0382cd5 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.0.1
+version=4.0.2
depends:
ir
project
diff --git a/trytond_project_invoice.egg-info/PKG-INFO b/trytond_project_invoice.egg-info/PKG-INFO
index 1c4bde7..08d3bf1 100644
--- a/trytond_project_invoice.egg-info/PKG-INFO
+++ b/trytond_project_invoice.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-project-invoice
-Version: 4.0.1
+Version: 4.0.2
Summary: Tryton module to invoice projects
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/work.py b/work.py
index 6fb5765..74855a3 100644
--- a/work.py
+++ b/work.py
@@ -490,7 +490,9 @@ class Work:
invoiced_progress = sum(x.effort_hours for x in self.invoiced_progress)
quantity = self.effort_hours * self.progress - invoiced_progress
- quantity = Uom.compute_qty(hour, quantity, self.product.default_uom)
+ if self.product:
+ quantity = Uom.compute_qty(
+ hour, quantity, self.product.default_uom)
if quantity > 0:
if not self.product:
self.raise_user_error('missing_product', (self.rec_name,))
--
tryton-modules-project-invoice
More information about the tryton-debian-vcs
mailing list