camptocamp / c2c-rd-addons

GNU Affero General Public License v3.0
15 stars 57 forks source link

Project_task_depencendy is not working on version8 #13

Closed mmotahar closed 8 years ago

mmotahar commented 9 years ago

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'

ferdiga commented 9 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

pradeep-bhaskaran commented 9 years ago

Just change it to -

if successor.stage_id.name not in ('Done'):

Needs to be done for all occurences of "state"

bennals commented 8 years ago

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.

ferdiga commented 8 years ago

it's not updated, may be for v9 or later