[6.1] Wrong message of verification of period

Bug #1056479 reported by Nhomar - Vauxoo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 3

Bug Description

Hello.

Try to post a journal entry in a closed period, you will reveive a message:
..... ---- ..... You can not add/modify entries in a closed journal. ..... - ......

Wao, is incredible that a verification than obvious than this:

file: account.py

1211 def _update_journal_check(self, cr, uid, journal_id, period_id, context=None):
1212 journal_obj = self.pool.get('account.journal')
1213 period_obj = self.pool.get('account.period')
1214 jour_period_obj = self.pool.get('account.journal.period')
1215 cr.execute('SELECT state FROM account_journal_period WHERE journal_id = %s AND period_id = %s', (journal_id, period_id))
1216 result = cr.fetchall()
1217 for (state,) in result:
1218 if state == 'done':
1219 raise osv.except_osv(_('Error !'), _('You can not add/modify entries in a closed journal.'))

Dudes, is a "Closed PERIOD"

It took to me see it something like 20 minutes, with an powerfull rgrep, but: How dou you explain that this is a little stuff to a end user?
How much time will take to an end user see than somebody close PERIOD and will expend hours in look in Journal...

Be carefull please!

Regards.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
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.