openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #25305
[Bug 1217707] Re: accounts pagination bug
Hello Christian,
I don't know where to find build numbers for all components. What can I
add as information is the accounting module version:
account_accountant
version:7.0.1.1
I can still reproduce the error but I'm working with a patched version of account.py:
[line 346]
try:
if child.company_id.currency_id.id == current.company_id.currency_id.id:
sums[current.id][fn] += sums[child.id][fn]
else:
sums[current.id][fn] += currency_obj.compute(cr, uid, child.company_id.currency_id.id, current.company_id.currency_id.id, sums[child.id][fn], context=context)
except KeyError:
pass
[...]
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1217707
Title:
accounts pagination bug
Status in OpenERP Addons (modules):
Incomplete
Bug description:
When you have many accounts so that a child account belongs to the
next page where the parent account is currently showed you get a
KeyError:
[code]
Client Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\openerp\addons\web\http.py", line 204, in dispatch
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\openerp\addons\web\controllers\main.py", line 1054, in search_read
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\openerp\addons\web\controllers\main.py", line 1089, in do_search_read
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\openerp\addons\web\session.py", line 42, in proxy
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\openerp\addons\web\session.py", line 30, in proxy_method
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\openerp\addons\web\session.py", line 103, in send
Server Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\openerp\addons\web\session.py", line 89, in send
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\.\openerp\netsvc.py", line 292, in dispatch_rpc
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\.\openerp\service\web_services.py", line 626, in dispatch
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\.\openerp\osv\osv.py", line 188, in execute_kw
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\.\openerp\osv\osv.py", line 131, in wrapper
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\.\openerp\osv\osv.py", line 197, in execute
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\.\openerp\osv\osv.py", line 185, in execute_cr
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\.\openerp\osv\orm.py", line 3606, in read
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\.\openerp\osv\orm.py", line 3714, in _read_flat
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\.\openerp\osv\fields.py", line 1133, in get
File "C:\Program Files (x86)\OpenERP 7.0-20130825-231127\Server\server\openerp\addons\account\account.py", line 348, in __compute
KeyError: 401
[/code]
Steps to reproduce:
insert more then 80 accounts
set the 80+1 account as child of a smaller-code account
load the first page (1 - 80) of accounts
Result expected:
no error
Browser:
Google Chrome 29.0.1547.57 m
OpenERP version:
OpenERP 7.0-20130825-231127
OS:
Win7
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1217707/+subscriptions