[trunk] "Tasks" menu item => <type 'exceptions.KeyError'>

Bug #530777 reported by Alexandre (http://www.smile.fr)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Mustufa Rangwala (Open ERP)

Bug Description

Here are 2 bugs in the "Project Management" module.
I am using the latest trunk versions of : 1) server, 2) web-client, 3) addons

1) "Project Management" tab, "Tasks" menu item, I get this cherrypy error message :
<type 'exceptions.KeyError'>: u'priority'
      args = (u'priority',)
      message = u'priority'

See the whole stack trace in the "bug1" attached file.

2) "Project Management" tab, "Projects" menu item, in the tree list projects, I select one project, and lanuch "Gantt Representation" action (right side).
I get the following stack trace :

Traceback (most recent call last):
  File "/usr/local/openerp/5.2/openobject-server/bin/service/web_services.py", line 712, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/usr/local/openerp/5.2/openobject-addons/project/report/gantt_report.py", line 72, in create
    tasks, last_date = _project_compute(cr, uid, ids[0])
  File "/usr/local/openerp/5.2/openobject-addons/project/report/_date_compute.py", line 91, in _project_compute
    tasks, last_date = _compute_project(cr, uid, project, date_begin)
  File "/usr/local/openerp/5.2/openobject-addons/project/report/_date_compute.py", line 80, in _compute_project
    t2, l2 = _compute_project(cr, uid, proj, last_date)
  File "/usr/local/openerp/5.2/openobject-addons/project/report/_date_compute.py", line 75, in _compute_project
    tasks, last_date = _compute_tasks(cr, uid, project.tasks, date_begin)
  File "/usr/local/openerp/5.2/openobject-server/bin/osv/orm.py", line 264, in __getattr__
    raise AttributeError(e)
AttributeError: "Field 'tasks' does not exist in object 'browse_record(account.analytic.account, 2)'"

Could you help me ? Thank you !

Revision history for this message
Alexandre (http://www.smile.fr) (alexandre-andrei) wrote :
affects: openobject-server → openobject-addons
Changed in openobject-addons:
assignee: nobody → rvo(Open ERP) (rvo-openerp)
Changed in openobject-addons:
assignee: rvo(Open ERP) (rvo-openerp) → mra (Open ERP) (mra-tinyerp)
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Hello alexandre,

I have tested your problem with latest revisions of trunk addons/server/webclient ...

Addons: 3188
Server: 2131
Webclient: 2942

1) "Project Management" tab, "Tasks" menu item, I get this cherrypy error message => There is no error on this event i can open list of Tasks.
2) "Project Management" tab, "Projects" menu item, in the tree list projects, I select one project, and lanuch "Gantt Representation" action (right side). => I can not find this menu on latest trunk addons..i think its from stable addons ...

Can you please verify above things (Versions) and notify us ..

Thank you,
Mustufa (mra)

Changed in openobject-addons:
status: New → Incomplete
Changed in openobject-addons:
milestone: none → 5.2
Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Alexandre,

I have tried it at my end several times but I am not able to reproduce the error.

I am closing this bug. You can re-open this if the problem persists.

Thank you.

Changed in openobject-addons:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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