Merge lp:~credativ/banking-addons/banking-addons-fixes-6.1 into lp:banking-addons/6.1

Proposed by Tom Pickering
Status: Merged
Merged at revision: 189
Proposed branch: lp:~credativ/banking-addons/banking-addons-fixes-6.1
Merge into: lp:banking-addons/6.1
Diff against target: 13 lines (+3/-0)
1 file modified
account_banking/ (+3/-0)
To merge this branch: bzr merge lp:~credativ/banking-addons/banking-addons-fixes-6.1
Reviewer Review Type Date Requested Status
Sandy Carter ( Approve
Pedro Manuel Baeza Approve
Stefan Rijnhart (Opener) Approve
Review via email:

Description of the change

Fix for bug whereby statement imports made on the first day of the year use the opening period rather than the normal period for that day.

To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thanks! I see the 7.0 branch has this already fixed in revno. 191.

review: Approve
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :


review: Approve
Revision history for this message
Sandy Carter ( (sandy-carter) wrote :


review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_banking/'
2--- account_banking/ 2013-10-14 12:29:05 +0000
3+++ account_banking/ 2013-12-13 16:44:40 +0000
4@@ -426,7 +426,10 @@
5 '''
6 Find matching period for date, not meant for _defaults.
7 '''
8+ if context is None:
9+ context = {}
10 period_obj = self.pool.get('account.period')
11+ context['account_period_prefer_normal'] = True
12 periods = period_obj.find(cursor, uid, dt=date, context=context)
13 return periods and periods[0] or False


People subscribed via source and target branches