Merge lp:~openerp-dev/openobject-addons/6.1-opw-590132-nep into lp:openobject-addons/6.1

Proposed by Nehal Panchal (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-590132-nep
Merge into: lp:openobject-addons/6.1
Diff against target: 11 lines (+1/-0)
1 file modified
account/ (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-590132-nep
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email:

Description of the change


If you edit Journal Items (when "Centralised Counterpart" is True for the jouranl which is used in Journal Items) raises the traceback.

Steps to reproduce:
1. In Accounting > Configuration > Financial accounting > Journals > Journals, check that the journal "Opening entries journal" has the option "Centralized Counterpart" = True and it has a "Default Debit Account" and a "Default Credit Account".
2. Go to Accounting > Journal entries > Journal Items and set Journal = "Opening entries journal" and period = "03/2013" and click on "Filter"
3. Enter a line (enter some text in the "Reference" field) and save it.
4. Select a created line and modify the content of the field "Reference"

This fixes the issue.


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

I am rejecting this because 6.1 is not an LTS and we thus no longer merge in 6.1.

Unmerged revisions

7193. By Nehal Panchal (OpenERP)

[FIX] account : Crash when using a Centralised journal

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/'
2--- account/ 2012-09-06 14:35:17 +0000
3+++ account/ 2013-03-26 07:15:26 +0000
4@@ -1112,6 +1112,7 @@
5 # use the first move ever created for this journal and period
6 if context is None:
7 context = {}
8+ context = self.convert_to_period(cr, uid, context=context)
9 cr.execute('SELECT id, state, name FROM account_move WHERE journal_id = %s AND period_id = %s ORDER BY id limit 1', (context['journal_id'],context['period_id']))
10 res = cr.fetchone()
11 if res: