openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #14911
[Bug 1002773] Re: reconcile opening balance entries
Started to try to reproduce this problem on the latest bits (with the db
updated) and I'm happy to say it seems to allow lettering with valid
entries (even if the code cited is unchanged)... perhaps the codepath is
different now.
What I'm having difficulties with is in a newly created db, with only
account_accountant added, why can't I seem to find the opening entries
journal 'centralisation' checkbox?
Perhaps there is some intermodule action that caused the problem at the
moment of the bug report, but is alleviated with subsequent upgrades and
new modules added.
Is centralisation still used?
--
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/1002773
Title:
reconcile opening balance entries
Status in OpenERP Addons (modules):
Triaged
Bug description:
In addition to the problem identified in Addons Bug #901166
We have encountered a problem with reconciling with entries from a
'posted' opening balance.
The error is: "The account move (RAN/2012/0001) for centralisation
has been confirmed!"
it appears that there is an explicit check in centralised entries that it MUST be 'draft' and not 'posted'.
Actually, at least in France, as long as the journal isn't closed, entries can be reconciled/unreconciled but not otherwise modified.
To temporarily get over the problem, I set the state back to 'draft'
and reconcile works fine. But this leaves the RAN unprotected (not
'posted'), therefore quite dangerous.
I believe these should be addressed with priority.
from account_move_line.py
def _check_moves(self, cr, uid, context=None):
# use the first move ever created for this journal and period
if context is None:
context = {}
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']))
res = cr.fetchone()
if res:
if res[1] != 'draft':
raise osv.except_osv(_('UserError'),
_('The account move (%s) for centralisation ' \
'has been confirmed!') % res[2])
return res
~/src/openerp/addons/6.1$ bzr version-info
revision-id: launchpad_translations_on_behalf_of_openerp-20120515052656-hjqg6rq32robbe9t
date: 2012-05-15 05:26:56 +0000
build-date: 2012-05-22 11:47:25 +0200
revno: 6798
branch-nick: 6.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1002773/+subscriptions
References