unable to close a fiscal year

Bug #314979 reported by Naresh(OpenERP)
2
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

I am not able to close a fiscal year, i am using the latest trunk version server,client and addons and when i try to run the wizard close fiscal year it generates this...

[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1946]: File "/home/nch/openERP/latest/addons/account/account_move_line.py", line 820, in create
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1947]: self.pool.get('account.move').write(cr, uid, [move_id], {'date':vals['date']}, context=context)
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1948]: File "/home/nch/openERP/latest/addons/account/account.py", line 806, in write
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1949]: result = super(osv.osv, self).write(cr, uid, ids, vals, c)
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1950]: File "/home/nch/openERP/latest/server/bin/osv/orm.py", line 2230, in write
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1951]: self._validate(cr, user, ids, context)
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1952]: File "/home/nch/openERP/latest/server/bin/osv/orm.py", line 670, in _validate
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1953]: if not fun(self, cr, uid, ids):
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1954]: File "/home/nch/openERP/latest/addons/account/account.py", line 748, in _check_centralisation
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1955]: if move.journal_id.centralisation:
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1956]: File "/home/nch/openERP/latest/server/bin/osv/orm.py", line 208, in __getattr__
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1957]: return self[name]
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1958]: File "/home/nch/openERP/latest/server/bin/osv/orm.py", line 175, in __getitem__
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1959]: datas = self._table.read(self._cr, self._uid, ids, fffields, context=self._context, load="_classic_write")
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1960]: File "/home/nch/openERP/latest/server/bin/osv/orm.py", line 1836, in read
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1961]: self.pool.get('ir.model.access').check(cr, user, self._name, 'read')
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1962]: File "/home/nch/openERP/latest/server/bin/tools/misc.py", line 630, in cached_result
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1963]: for key, id in self._generate_keys(cr.dbname, kwargs2):
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1964]: File "/home/nch/openERP/latest/server/bin/tools/misc.py", line 567, in _generate_keys
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1965]: key = (('dbname', dbname),) + to_tuple(kwargs2)
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1966]: File "/home/nch/openERP/latest/server/bin/tools/misc.py", line 563, in to_tuple
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1967]: i.sort()
[Thu Jan 08 2009 11:26:01] ERROR:web-services:[1968]: RuntimeError: maximum recursion depth exceeded in cmp
[Thu Jan 08 2009 12:09:49] INFO:shutdown:Shutdown Server! - SIGINT

regards,

Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

I can't reproduce this bug

I made a change in the cache system. Can you retry with a least "1581 <email address hidden>" ?

I also fix the "close fiscal year" wizard, so also update the addons to "2086 <email address hidden>"

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

hello sir,
i have tested it as you mention above but the problem still persists. i have solved it temporarily for me by commenting the line no. 807 in account.py "self.validate(cr, uid, ids, context) " which was forming a loop and causing a recursion....

regards,
nch

qdp (OpenERP) (qdp)
Changed in openobject-addons:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.