[tryton-debian-vcs] tryton-modules-account-payment-sepa branch debian updated. debian/3.2.1-1-2-g0acbb28
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Tue Aug 26 16:42:29 UTC 2014
The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account-payment-sepa.git;a=commitdiff;h=debian/3.2.1-1-2-g0acbb28
commit 0acbb28ec409479a997b68e61d3ac00339de60bb
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Aug 26 13:01:44 2014 +0200
Releasing debian version 3.2.2-1.
diff --git a/debian/changelog b/debian/changelog
index 5ee00c7..277b067 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-account-payment-sepa (3.2.2-1) unstable; urgency=medium
+
+ * Merging upstream version 3.2.2.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Tue, 26 Aug 2014 13:01:44 +0200
+
tryton-modules-account-payment-sepa (3.2.1-1) unstable; urgency=medium
* Updating signing key while using now plain .asc files instead of .pgp
commit a0751a4079e1384ad0e9782c5f2ae0f7430b4e82
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Aug 26 13:01:42 2014 +0200
Merging upstream version 3.2.2.
diff --git a/CHANGELOG b/CHANGELOG
index 0093e9c..5d21a51 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.2.2 - 2014-08-03
+* Bug fixes (see mercurial logs for details)
+
Version 3.2.1 - 2014-07-02
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index cfbbadc..b11aacc 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_account_payment_sepa
-Version: 3.2.1
+Version: 3.2.2
Summary: Tryton module for SEPA payment
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/payment.py b/payment.py
index 2c25df4..28af64e 100644
--- a/payment.py
+++ b/payment.py
@@ -205,10 +205,14 @@ class Payment:
@property
def sepa_bank_account_number(self):
- for account in self.party.bank_accounts:
- for number in account.numbers:
- if number.type == 'iban':
- return number
+ if self.kind == 'receivable':
+ if self.sepa_mandate:
+ return self.sepa_mandate.account_number
+ else:
+ for account in self.party.bank_accounts:
+ for number in account.numbers:
+ if number.type == 'iban':
+ return number
class Mandate(Workflow, ModelSQL, ModelView):
diff --git a/tryton.cfg b/tryton.cfg
index 0a516dc..eecb6bf 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.2.1
+version=3.2.2
depends:
account_payment
company
diff --git a/trytond_account_payment_sepa.egg-info/PKG-INFO b/trytond_account_payment_sepa.egg-info/PKG-INFO
index e77ec20..5b580eb 100644
--- a/trytond_account_payment_sepa.egg-info/PKG-INFO
+++ b/trytond_account_payment_sepa.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-account-payment-sepa
-Version: 3.2.1
+Version: 3.2.2
Summary: Tryton module for SEPA payment
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-account-payment-sepa
More information about the tryton-debian-vcs
mailing list