[6.1] Change Prestations on Task throws error when analytic accounting is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Environment:
OpenERP 6.1 on Ubuntu 10.04 or RedHat 6.2
PostgreSQl 8.4
I installed:
-Project management
- Accounting
- Multiple analytic accounting plans.
I create a project, and create some tasks on them. I assigne the tasks to some users.
The user starts the task.
The users logs some Work (Creates a new entry under 'Task Work' in the form view of the task.
Up until now. Everything works Fine. The Worked time gets created correctly on the analytic account of the project. The timesheet line gets created correctly.
Now, when I go back to the task and worked hours, and I try to modify the number of hours I worked on the task (edit existing logged work line), then save the line and the nsave the task, I get an error on the saving of the task.
Maybe linked to Bug #944079??
Traceback:
Client Traceback (most recent call last):
File "/opt/openerp/
response[
File "/opt/openerp/
r = m.write([id], data, req.session.
File "/opt/openerp/
args, kw)
File "/opt/openerp/
result = self.connector.
File "/opt/openerp/
raise fault
Server Traceback (most recent call last):
File "/opt/openerp/
result = openerp.
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
return super(task,
File "/opt/openerp/
result = super(task,
File "/opt/openerp/
result += self._columns[
File "/opt/openerp/
obj.write(cr, user, [act[1]], act[2], context=context)
File "/opt/openerp/
unit_
KeyError: 'journal_id'