projects
/
OpenERP
/
cmmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
492082a
)
Modification de la relation projet-phase en projet-phase.type
author
Alicia FLOREZ
<alicflorez@gmail.com>
Fri, 24 May 2013 15:22:34 +0000
(17:22 +0200)
committer
Alicia FLOREZ
<alicflorez@gmail.com>
Fri, 24 May 2013 15:22:34 +0000
(17:22 +0200)
projet.py
patch
|
blob
|
history
diff --git
a/projet.py
b/projet.py
index
6dc86ed
..
9381694
100644
(file)
--- a/
projet.py
+++ b/
projet.py
@@
-114,7
+114,7
@@
class Projet(osv.Model):
project_id = osv.Model.create(self, cr, uid, vals, context=context)
# Récupération des ids de toutes les phases
project_id = osv.Model.create(self, cr, uid, vals, context=context)
# Récupération des ids de toutes les phases
- phase_model = self.pool.get("cmmi.phase")
+ phase_model = self.pool.get("cmmi.phase.type")
phases_ids = phase_model.search(cr, uid, [])
# Création des relations
phases_ids = phase_model.search(cr, uid, [])
# Création des relations
@@
-327,7
+327,7
@@
class ProjetPhase(osv.Model):
"projet_id": fields.many2one("cmmi.projet",
string="Projet",
required=True),
"projet_id": fields.many2one("cmmi.projet",
string="Projet",
required=True),
- "phase_id": fields.many2one("cmmi.phase",
+ "phase_id": fields.many2one("cmmi.phase.type",
string="Phase",
required=True),
}
\ No newline at end of file
string="Phase",
required=True),
}
\ No newline at end of file