Merge lp:~openerp-dev/openobject-addons/6.1-opw-578405-skh into lp:openobject-addons/6.1

Proposed by Somesh Khare
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 6961
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-578405-skh
Merge into: lp:openobject-addons/6.1
Diff against target: 11 lines (+1/-1)
1 file modified
account/ (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-578405-skh
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email:

Description of the change

Hello Sir,

[FIX]account.move.line: list index out of range error when context have wrong period name.

1. Open Accounting/Journal Entries/Journal Items menu.
2. select "Sale Journal" and type period as "08/12" and press Search button.
Error Occurred:
IndexError: list index out of range

This branch fixes this issue. Kindly review the branch and please share your views on it.

Somesh Khare

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :


This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Naresh Soni

Unmerged revisions

6961. By Somesh Khare

[FIX]account.move.line: list index error when context have wrong period (Case: ref 578405 )

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/'
2--- account/ 2012-07-27 11:43:03 +0000
3+++ account/ 2012-08-24 09:49:21 +0000
4@@ -207,7 +207,7 @@
5 if type(period_id) == str:
6 ids =, uid, [('name', 'ilike', period_id)])
7 context.update({
8- 'period_id': ids[0]
9+ 'period_id': ids and ids[0] or False
10 })
11 return context