Crash when using a Centralised journal with OpenERP 6.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
Here is the scenario to reproduce the problem on an up-to-date OpenERP 6.1 (up-to-date code from Launchpad/bzr).
1) Install a new DB with demo data
2) Install the account_accountant module
3) Activate extended view for your user
4) In Accounting > Configuration > Financial accounting > Journals > Journals, check that the journal "Opening entries journal" has the option "Centralized Counterpart" = True and that it has a "Default Debit Account" and a "Default Credit Account".
FROM NOW ON, you should use the Gtk Client (maybe you also have the crash with the Web interface, but I have not tested)
5) Go to Accounting > Journal entries > Journal Items, set Journal = "Opening entries journal" and period = "03/2013" and click on "Filter"
6) Enter some lines (enter some text in the "Reference" field) and save them.
7) Select a line that you just created ; then select the content of the field "Reference"
8) Modify the content of the "Reference" field and then press "Enter"
=> You get a traceback :
Environment Information :
System : Linux-3.
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
Operating System Release : 3.5.0-26-generic
Operating System Version : #42-Ubuntu SMP Fri Mar 8 23:18:20 UTC 2013
Operating System Architecture : 64bit
Operating System Locale : fr_FR.UTF-8
Python Version : 2.7.3
OpenERP-Client Version : 6.1.1
Last revision No. & ID :2101 launchpad_
Traceback (most recent call last):
File "/home/
result = netsvc.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
self.
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
DataError: invalid input syntax for integer: "03/2013"
LINE 1: ...account_move WHERE journal_id = 9 AND period_id = '03/2013' ...
When you look at the code of account/
The enclosed patch fixes this bug (it's a one-line-patch !).
Related branches
- Naresh(OpenERP): Pending requested
-
Diff: 11 lines (+1/-0)1 file modifiedaccount/account_move_line.py (+1/-0)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | New → Confirmed |
Hello,
Thanks for your contribution.
This issue has been fixed in branch: http:// bazaar. launchpad. net/~openerp- dev/openobject- addons/ 6.1-opw- 590132- nep/revision/ 7193
Revision: 7193
Revision ID: <email address hidden>
Thanks