Add patch to fix bug in sequence type choose on SEPA

This commit is contained in:
Bernat Brunet Torruella 2017-03-24 06:39:18 +01:00
parent 5694099bcc
commit c9df2d0396
2 changed files with 21 additions and 0 deletions

20
sepa_sequence_type.diff Normal file
View 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
View File

@ -43,6 +43,7 @@ account_product_rules.diff
issue5558.diff
party_check_vies.diff
remove_payable_receivable_filter.diff
sepa_sequence_type.diff
# Ignore next patches
#incremental_wait_in_retries.diff