← Back to team overview

banking-addons-team team mailing list archive

[Merge] lp:~therp-nl/banking-addons/7.0-lp1241426-sct_requested_date into lp:banking-addons

 

Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/banking-addons/7.0-lp1241426-sct_requested_date into lp:banking-addons.

Requested reviews:
  Banking Addons Core Editors (banking-addons-team)
Related bugs:
  Bug #1241426 in Banking Addons: "Sepa credit transfer requested execution date defaults to tomorrow"
  https://bugs.launchpad.net/banking-addons/+bug/1241426

For more details, see:
https://code.launchpad.net/~therp-nl/banking-addons/7.0-lp1241426-sct_requested_date/+merge/191768
-- 
https://code.launchpad.net/~therp-nl/banking-addons/7.0-lp1241426-sct_requested_date/+merge/191768
Your team Banking Addons Core Editors is requested to review the proposed merge of lp:~therp-nl/banking-addons/7.0-lp1241426-sct_requested_date into lp:banking-addons.
=== modified file 'account_banking_sepa_credit_transfer/wizard/export_sepa.py'
--- account_banking_sepa_credit_transfer/wizard/export_sepa.py	2013-09-23 17:23:31 +0000
+++ account_banking_sepa_credit_transfer/wizard/export_sepa.py	2013-10-18 09:04:59 +0000
@@ -138,7 +138,8 @@
         if sepa_export.prefered_exec_date:
             my_requested_exec_date = sepa_export.prefered_exec_date
         else:
-            my_requested_exec_date = datetime.strftime(datetime.today() + timedelta(days=1), '%Y-%m-%d')
+            my_requested_exec_date = fields.date.context_today(
+                self, cr, uid, context=context)
 
         pain_ns = {
             'xsi': 'http://www.w3.org/2001/XMLSchema-instance',


Follow ups