Closed mmotahar closed 8 years ago
On 2015-05-27 11:06, seyed-mohammad-motahar wrote:
Hi,
Create a project with 3 tasks.
Assign the second task as the successor of the first task.
Below is the error message. I believe it's a small change as in version 8 it is not "state" but "stage"
File "/opt/odoo/custom_module/project_task_dependencies/project.py", line 169, in compute_earliest_start_successors if successor.state not in ('done'): AttributeError: 'project.task' object has no attribute 'state'
please make a pull request,
v8 is not supported yet
— Reply to this email directly or view it on GitHub https://github.com/camptocamp/c2c-rd-addons/issues/13.
regards Ferdinand
Just change it to -
if successor.stage_id.name not in ('Done'):
Needs to be done for all occurences of "state"
Hi,
Did this module get updated for v8? It's available in the Odoo App store for v8 and I just downloaded and installed it but the error mentioned above is still occurring.
Thanks,
Bill.
it's not updated, may be for v9 or later
Hi,
Create a project with 3 tasks.
Assign the second task as the successor of the first task.
Below is the error message. I believe it's a small change as in version 8 it is not "state" but "stage"
File "/opt/odoo/custom_module/project_task_dependencies/project.py", line 169, in compute_earliest_start_successors if successor.state not in ('done'): AttributeError: 'project.task' object has no attribute 'state'