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:
d556b60
)
Refonte de la notion de phase 2/3
author
Sébastien CHAZALLET
<s.chazallet@gmail.com>
Thu, 30 May 2013 09:53:34 +0000
(11:53 +0200)
committer
Sébastien CHAZALLET
<s.chazallet@gmail.com>
Thu, 30 May 2013 09:53:34 +0000
(11:53 +0200)
projet.py
patch
|
blob
|
history
diff --git
a/projet.py
b/projet.py
index
611c422
..
96e0502
100644
(file)
--- a/
projet.py
+++ b/
projet.py
@@
-310,6
+310,8
@@
class ProjetMoa(osv.Model):
class ProjetPhase(osv.Model):
_name = "cmmi.projet.phase"
class ProjetPhase(osv.Model):
_name = "cmmi.projet.phase"
+ _description = "Linking of phases to projects / Rattachement des Phases aux projets"
+
def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
if isinstance(ids, (int, long)):
ids = [ids]
def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
if isinstance(ids, (int, long)):
ids = [ids]
@@
-321,13
+323,13
@@
class ProjetPhase(osv.Model):
type='char',
store=True,
string="Nom de la phase"),
type='char',
store=True,
string="Nom de la phase"),
- "selectionne": fields.boolean(string="Phase sélectionnée ?"),
+ "phase_id": fields.many2one("cmmi.phase",
+ string="Phase",
+ required=True),
"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.type",
- string="Phase",
- required=True),
+ "selectionne": fields.boolean(string="Phase sélectionnée ?"),
}
}