credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05689
[Merge] lp:~credativ/banking-addons/banking-addons-fixes-6.1 into lp:banking-addons/6.1
Tom Pickering has proposed merging lp:~credativ/banking-addons/banking-addons-fixes-6.1 into lp:banking-addons/6.1.
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/~credativ/banking-addons/banking-addons-fixes-6.1/+merge/198974
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.
--
https://code.launchpad.net/~credativ/banking-addons/banking-addons-fixes-6.1/+merge/198974
Your team credativ is subscribed to branch lp:~credativ/banking-addons/banking-addons-fixes-6.1.
=== modified file 'account_banking/account_banking.py'
--- account_banking/account_banking.py 2013-10-14 12:29:05 +0000
+++ account_banking/account_banking.py 2013-12-13 16:44:40 +0000
@@ -426,7 +426,10 @@
'''
Find matching period for date, not meant for _defaults.
'''
+ if context is None:
+ context = {}
period_obj = self.pool.get('account.period')
+ context['account_period_prefer_normal'] = True
periods = period_obj.find(cursor, uid, dt=date, context=context)
return periods and periods[0] or False
Follow ups