mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Add patch to fix bug in sequence type choose on SEPA
This commit is contained in:
parent
5694099bcc
commit
c9df2d0396
20
sepa_sequence_type.diff
Normal file
20
sepa_sequence_type.diff
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
diff -r 8e41d4f4ca77 payment.py
|
||||||
|
--- a/trytond/trytond/modules/account_payment_sepa/payment.py Tue Jul 05 22:51:45 2016 +0200
|
||||||
|
+++ b/trytond/trytond/modules/account_payment_sepa/payment.py Fri Mar 24 06:34:14 2017 +0100
|
||||||
|
@@ -491,10 +491,12 @@
|
||||||
|
def sequence_type(self):
|
||||||
|
if self.type == 'one-off':
|
||||||
|
return 'OOFF'
|
||||||
|
- elif (not self.payments
|
||||||
|
- or all(not p.sepa_mandate_sequence_type for p in self.payments)
|
||||||
|
- or all(p.rejected for p in self.payments)):
|
||||||
|
- return 'FRST'
|
||||||
|
+ ## Comented because the 'self.payments' browse take a lot of time. In
|
||||||
|
+ ## some cases hours.
|
||||||
|
+ ##elif (not self.payments
|
||||||
|
+ ## or all(not p.sepa_mandate_sequence_type for p in self.payments)
|
||||||
|
+ ## or all(p.rejected for p in self.payments)):
|
||||||
|
+ ## return 'FRST'
|
||||||
|
# TODO manage FNAL
|
||||||
|
else:
|
||||||
|
return 'RCUR'
|
1
series
1
series
|
@ -43,6 +43,7 @@ account_product_rules.diff
|
||||||
issue5558.diff
|
issue5558.diff
|
||||||
party_check_vies.diff
|
party_check_vies.diff
|
||||||
remove_payable_receivable_filter.diff
|
remove_payable_receivable_filter.diff
|
||||||
|
sepa_sequence_type.diff
|
||||||
|
|
||||||
# Ignore next patches
|
# Ignore next patches
|
||||||
#incremental_wait_in_retries.diff
|
#incremental_wait_in_retries.diff
|
||||||
|
|
Loading…
Reference in a new issue