← Back to team overview

banking-addons-team team mailing list archive

[Merge] lp:~camptocamp/banking-addons/bank-statement-reconcile-7.0-fix-period-lep into lp:banking-addons/bank-statement-reconcile-7.0

 

Leonardo Pistone @ camptocamp has proposed merging lp:~camptocamp/banking-addons/bank-statement-reconcile-7.0-fix-period-lep into lp:banking-addons/bank-statement-reconcile-7.0.

Requested reviews:
  Banking Addons Core Editors (banking-addons-team)
Related bugs:
  Bug #1260794 in Banking Addons: "Statement import prioritises opening period over normal period on the first day of the year."
  https://bugs.launchpad.net/banking-addons/+bug/1260794

For more details, see:
https://code.launchpad.net/~camptocamp/banking-addons/bank-statement-reconcile-7.0-fix-period-lep/+merge/203951
-- 
https://code.launchpad.net/~camptocamp/banking-addons/bank-statement-reconcile-7.0-fix-period-lep/+merge/203951
Your team Banking Addons Core Editors is requested to review the proposed merge of lp:~camptocamp/banking-addons/bank-statement-reconcile-7.0-fix-period-lep into lp:banking-addons/bank-statement-reconcile-7.0.
=== modified file 'account_statement_ext/statement.py'
--- account_statement_ext/statement.py	2014-01-17 13:22:47 +0000
+++ account_statement_ext/statement.py	2014-01-30 12:50:11 +0000
@@ -213,7 +213,10 @@
         """
         Find matching period for date, used in the statement line creation.
         """
+        if context is None:
+            context = {}
         period_obj = self.pool.get('account.period')
+        context['account_period_prefer_normal'] = True
         periods = period_obj.find(cr, uid, dt=date, context=context)
         return periods and periods[0] or False
 


Follow ups