client side error while creating new timesheet line

Bug #664955 reported by Sohan Solanki(sos-Axelor)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

With bzr revno 4454 of truk series addons. Following error displayed at client side while creating new timesheet line from hr timesheet.
ERROR:tools.expr_eval:date=date_current,user_id=user_id
Traceback (most recent call last):
  File "/home/eiffel/trunk/client/bin/tools/__init__.py", line 51, in expr_eval
    temp = eval(string, context)
  File "<string>", line 1
     date=date_current,user_id=user_id
         ^
 SyntaxError: invalid syntax
ERROR:tools.expr_eval:dict(date=date_current,user_id=user_id)
Traceback (most recent call last):
  File "/home/eiffel/trunk/client/bin/tools/__init__.py", line 51, in expr_eval
    temp = eval(string, context)
  File "<string>", line 1, in <module>
NameError: name 'user_id' is not defined

This due to 'user_id' field passed in context of o2m timesheet line. Field is no more in view.

Related branches

Changed in openobject-addons:
assignee: nobody → RME(OpenERP) (rme-openerp)
Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

This is a problem of passing user_id wrongly in context.
Thanks.

Changed in openobject-addons:
importance: Undecided → Low
assignee: RME(OpenERP) (rme-openerp) → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1) → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
milestone: none → 6.0-rc2
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello,

It has been fixed in lp:~openerp-dev/openobject-addons/trunk-dev-addons3 branch.

revision-id: mra@mra-laptop-20101101122437-kkq2wqe3sebb8ebu
revno: 4561

Thanks for notifying us.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
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.