Trying to save a record in HR / Working Hours when not all obliged fields are filled crashes the Web Client

Bug #439438 reported by EdZ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Amit Mendapara

Bug Description

Trying to save a record in HR / Working Hours when not all obliged fields are filled crashes the Web Client

In Web Client 5.0.6, Ubuntu 8.0.4
Make sure the employee is linke to your user_id and has been setup properly for timesheet entree
Select HR / Working Hours / All Working Hours
Create a new line
Save the line:

A message appears:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/audittrail/audittrail.py", line 346, in execute
    res = my_fct(db, uid, passwd, object, method, *args)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/audittrail/audittrail.py", line 336, in my_fct
    return fct_src(db, uid, passwd, object, method, *args)
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 583, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 59, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 118, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 110, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/hr_timesheet_sheet/hr_timesheet_sheet.py", line 412, in create
    return super(hr_timesheet_line,self).create(cr, uid, vals, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/hr_timesheet/hr_timesheet.py", line 136, in create
    raise except_orm(_('UnknownError'), str(e))
  File "/usr/lib/python2.5/site-packages/openerp-server/tools/translate.py", line 138, in __call__
    cr.execute('select value from ir_translation where lang=%s and type=%s and src=%s', (lang, 'code', source))
  File "/usr/lib/python2.5/site-packages/openerp-server/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/openerp-server/sql_db.py", line 120, in execute
    res = self._obj.execute(query, params)
ProgrammingError: current transaction is aborted, commands ignored until end of transaction block

In the GTK Client the Message 'Fill the red fields' appears as expected.

Related branches

Revision history for this message
Amit Mendapara (cristatus) wrote :

Would you please attach a sample module to test with?

Changed in openobject-client-web:
status: New → Incomplete
Changed in openobject-client-web:
status: Incomplete → Confirmed
Revision history for this message
Amit Mendapara (cristatus) wrote :

Fixed in rev 2706. Branch 5.0.

Changed in openobject-client-web:
assignee: nobody → ame (Tiny) (ame-tiny)
milestone: none → 5.0.7
status: Confirmed → Fix Committed
Changed in openobject-client-web:
status: Fix Committed → 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.