← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 681688] Re: project working hours problem with analytic journal

 

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.

-- 
project working hours problem with analytic journal
https://bugs.launchpad.net/bugs/681688
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: New

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





References