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

Proposed by Tom Pickering on 2013-12-13
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/account_banking.py (+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 (http://www.savoirfairelinux.com) Approve on 2013-12-16
Pedro Manuel Baeza Approve on 2013-12-13
Stefan Rijnhart (Opener) 2013-12-13 Approve on 2013-12-13
Review via email: mp+198974@code.launchpad.net

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.

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

review: Approve
Pedro Manuel Baeza (pedro.baeza) wrote :

LGTM

review: Approve

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_banking/account_banking.py'
2--- account_banking/account_banking.py 2013-10-14 12:29:05 +0000
3+++ account_banking/account_banking.py 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
14

Subscribers

People subscribed via source and target branches