[tryton-debian-vcs] tryton-modules-account-invoice branch upstream-4.0 updated. upstream/4.0.4-1-g34d617b

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Sun Jun 11 22:35:00 UTC 2017


The following commit has been merged in the upstream-4.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account-invoice.git;a=commitdiff;h=upstream/4.0.4-1-g34d617b

commit 34d617bcd7ab771d6b959575519c6a3984de930b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sun Jun 11 22:14:51 2017 +0200

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

diff --git a/CHANGELOG b/CHANGELOG
index a76db45..0d10aec 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.5 - 2017-06-06
+* Bug fixes (see mercurial logs for details)
+
 Version 4.0.4 - 2017-01-03
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index 48f96af..dba4452 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2008-2016 Cédric Krier.
+Copyright (C) 2008-2017 Cédric Krier.
 Copyright (C) 2008-2013 Bertrand Chenal.
-Copyright (C) 2008-2016 B2CK SPRL.
+Copyright (C) 2008-2017 B2CK SPRL.
 Copyright (C) 2004-2008 Tiny SPRL.
 
 This program is free software: you can redistribute it and/or modify
diff --git a/PKG-INFO b/PKG-INFO
index 9d8e4b0..d638946 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_account_invoice
-Version: 4.0.4
+Version: 4.0.5
 Summary: Tryton module for invoicing
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/invoice.py b/invoice.py
index bdf2399..f61a3cc 100644
--- a/invoice.py
+++ b/invoice.py
@@ -1954,7 +1954,10 @@ class InvoiceLine(ModelSQL, ModelView, TaxableMixin):
         '''
         res = {}
         res['origin'] = str(self)
-        res['quantity'] = -self.quantity
+        if self.quantity:
+            res['quantity'] = -self.quantity
+        else:
+            res['quantity'] = self.quantity
 
         for field in ('sequence', 'type', 'invoice_type', 'unit_price',
                 'description'):
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 4be97e3..e10c0b1 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.0.4
+version=4.0.5
 depends:
     account
     account_product
diff --git a/trytond_account_invoice.egg-info/PKG-INFO b/trytond_account_invoice.egg-info/PKG-INFO
index bbe491e..b9f7b73 100644
--- a/trytond_account_invoice.egg-info/PKG-INFO
+++ b/trytond_account_invoice.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-account-invoice
-Version: 4.0.4
+Version: 4.0.5
 Summary: Tryton module for invoicing
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-account-invoice



More information about the tryton-debian-vcs mailing list