[tryton-debian-vcs] tryton-modules-account-invoice branch upstream-3.0 updated. upstream/3.0.5-1-gcf43d45
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Mar 4 00:29:36 UTC 2015
The following commit has been merged in the upstream-3.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account-invoice.git;a=commitdiff;h=upstream/3.0.5-1-gcf43d45
commit cf43d456a54fad36a6b5a9126890cb8e32b67fad
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Mar 3 11:35:11 2015 +0100
Adding upstream version 3.0.6.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index 7aa133a..fbdb607 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.6 - 2015-03-02
+* Bug fixes (see mercurial logs for details)
+
Version 3.0.5 - 2014-11-06
* Bug fixes (see mercurial logs for details)
diff --git a/COPYRIGHT b/COPYRIGHT
index 77715d8..3a28212 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2008-2014 Cédric Krier.
+Copyright (C) 2008-2015 Cédric Krier.
Copyright (C) 2008-2013 Bertrand Chenal.
-Copyright (C) 2008-2014 B2CK SPRL.
+Copyright (C) 2008-2015 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 dd7d8a3..c7f8f09 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_account_invoice
-Version: 3.0.5
+Version: 3.0.6
Summary: Tryton module for invoicing
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/invoice.py b/invoice.py
index 3ca6d53..f51bb31 100644
--- a/invoice.py
+++ b/invoice.py
@@ -1342,10 +1342,10 @@ class Invoice(Workflow, ModelSQL, ModelView):
for invoice in invoices:
invoice.set_number()
moves.append(invoice.create_move())
- cls.write(invoices, {
+ cls.write([i for i in invoices if i.state != 'posted'], {
'state': 'posted',
})
- Move.post(moves)
+ Move.post([m for m in moves if m.state != 'posted'])
for invoice in invoices:
if invoice.type in ('out_invoice', 'out_credit_note'):
invoice.print_invoice()
diff --git a/setup.py b/setup.py
index 7bb618d..e920ffb 100644
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,9 @@ for dep in info.get('depends', []):
requires.append('trytond >= %s.%s, < %s.%s' %
(major_version, minor_version, major_version, minor_version + 1))
+tests_require = ['proteus >= %s.%s, < %s.%s' %
+ (major_version, minor_version, major_version, minor_version + 1)]
+
setup(name='trytond_account_invoice',
version=info.get('version', '0.0.1'),
description='Tryton module for invoicing',
@@ -81,4 +84,5 @@ setup(name='trytond_account_invoice',
""",
test_suite='tests',
test_loader='trytond.test_loader:Loader',
+ tests_require=tests_require,
)
diff --git a/tryton.cfg b/tryton.cfg
index 4b50895..aca17d5 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.0.5
+version=3.0.6
depends:
account
account_product
diff --git a/trytond_account_invoice.egg-info/PKG-INFO b/trytond_account_invoice.egg-info/PKG-INFO
index 07b5286..b04d856 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: 3.0.5
+Version: 3.0.6
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