~technofluid-team/openobject-addons/technofluid

« back to all changes in this revision

Viewing changes to maintenance_model/maintenance_model.py

  • Committer: cth
  • Date: 2015-11-16 15:38:49 UTC
  • Revision ID: cth-20151116153849-817wlpf7254zjgct
correction calcul start hours dans projets de maintenance

Show diffs side-by-side

added added

removed removed

Lines of Context:
270
270
            for project_id in [project_id for project_id in tmp if not found]:
271
271
                # We take the first active project
272
272
                for project in self.pool.get('maintenance.project').browse(cr,uid,[project_id],context=context):
273
 
                    if project.state in ['active','draft']:
 
273
                    if project.state != 'disabled':
274
274
                        found=True
275
275
                        break
276
276