[tryton-debian-vcs] tryton-modules-account-payment-sepa branch upstream updated. upstream/3.2.1-1-g6a4cd71
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 upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account-payment-sepa.git;a=commitdiff;h=upstream/3.2.1-1-g6a4cd71
commit 6a4cd71a428d44b92ac71f395d2ad64582c1489b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Aug 26 13:01:41 2014 +0200
Adding 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