project working hours problem with analytic journal

Bug #681688 reported by Frederic Descamps
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
OpenERP R&D Web Team

Bug Description

when trying to add working hours in project, on the web-client an error message pops up complaining about having no analytic journal linked to the employee.
but of course there is one and this works with the gtk-client.

addons revno: 3960

web-clien revno: 3964

to reproduce: create a user, an employee for the user, add a analytic journal to it, a project and try to add working hours.

in attachment the screenshot of the message

Related branches

Revision history for this message
Frederic Descamps (lefred) wrote :
Revision history for this message
Frederic Descamps (lefred) wrote :

still the same problem with revno: 3976

this blocks the use of working hours in project for users

Revision history for this message
Frederic Descamps (lefred) wrote :

it seems that this error is due to an invisible field.

in the view hr_timesheet_view.xml (of hr_timesheet module), in the hr.analytic.timesheet.tree view, journal_id is invisible=1, due to that journal_id is never sent:

data : {'to_invoice': 1, 'user_id': 3, 'account_id': 2, 'unit_amount': 3.0, 'date': '2010-11-29', 'name': 'fred'}

context : {'lang': 'en_US', 'active_ids': [248], 'tz': False, 'active_model': 'ir.ui.menu', 'department_id': False, 'search_default_today': 1, '_terp_view_name': 'Working Hours', 'search_default_user_id': 3, 'client': 'web', 'project_id': False, 'active_id': 248

If I change
<field name="journal_id" invisible="1">
by
<field name="journal_id">
it works as expected.

It is then a problem with invisible fields not sent to the server.

Vo Minh Thu (thu)
Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
status: New → Confirmed
Changed in openobject-client-web:
status: Confirmed → In Progress
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Frederic Descamps,

We have fixed the problem in lp:~openerp-dev/openobject-client-web/listview_invisible
It will be merged soon in trunk (lp:openobject-client-web).

Revision Info:
4083 <email address hidden>

Thanks.

Changed in openobject-client-web:
status: In Progress → Fix Released
milestone: none → 6.0-rc2
Revision history for this message
Frederic Descamps (lefred) wrote :

I just tested it and it works fine

Changed in openobject-client-web:
status: Fix Released → 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.