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:
3c0e65c
)
Rajout de la classe projet.role_mo
author
Alicia FLOREZ
<alicflorez@gmail.com>
Fri, 19 Apr 2013 10:01:07 +0000
(12:01 +0200)
committer
Alicia FLOREZ
<alicflorez@gmail.com>
Fri, 19 Apr 2013 10:01:07 +0000
(12:01 +0200)
projet.py
patch
|
blob
|
history
diff --git
a/projet.py
b/projet.py
index
d4b951f
..
5374861
100644
(file)
--- a/
projet.py
+++ b/
projet.py
@@
-97,6
+97,19
@@
class Structure(osv.Model):
}
+class Role_MO(osv.Model):
+ _name = "projet.role_mo"
+
+ _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
+
+
+ _columns = {
+ "name": fields.char(string="Title", size=64, required=True),
+ "code": fields.char(string="Code", size=8, required=True),
+ "description": fields.text(string="Description"),
+ "statut": fields.selection(_statuts, string="Statut"),
+ }
+
class Module(osv.Model):
_name = "projet.module"