projects
/
OpenERP
/
cmmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b54e3bb
)
Ajout relation evolution/module
author
Alicia FLOREZ
<alicflorez@gmail.com>
Thu, 11 Apr 2013 11:18:40 +0000
(13:18 +0200)
committer
Alicia FLOREZ
<alicflorez@gmail.com>
Thu, 11 Apr 2013 11:18:40 +0000
(13:18 +0200)
projet.py
patch
|
blob
|
history
diff --git
a/projet.py
b/projet.py
index
c8e80e7
..
e56af94
100644
(file)
--- a/
projet.py
+++ b/
projet.py
@@
-48,6
+48,8
@@
class Evolution(osv.Model):
"charges": fields.one2many("projet.charge",
"evolution_id",
string="Charges"),
+ "module_id": fields.many2one("projet.module",
+ string="Modules")
}
@@
-73,6
+75,9
@@
class Module(osv.Model):
"projet_id": fields.many2one("projet.projet",
string="Projet (module)",
required=True),
+ "evolutions": fields.one2many("projet.evolution",
+ "module_id",
+ string="Evolutions")
}