@@ -44,7 +44,7 @@ class FilamentProjet(models.Model):
...
@@ -44,7 +44,7 @@ class FilamentProjet(models.Model):
self.lf_heures_prospection=0.0
self.lf_heures_prospection=0.0
## Calcul heures
## Calcul heures
ifself.use_prospection:
ifself.use_prospection:
self.env.cr.execute("select sum(aal.unit_amount) from account_analytic_line aal, project_task pt where aal.project_id=%s and pt.name like 'Prospection' and pt.id=aal.task_id;",(project,))
self.env.cr.execute("select sum(aal.unit_amount) from account_analytic_line aal, project_task pt where aal.project_id=%s and pt.name like %s and pt.id=aal.task_id;",(project,"Prospection%",))