class Mesurable(osv.Model):
- _name = "projet.mesurable"
+ _name = "cmmi.axes.mesurable"
_statuts = [("cree", "Crée"), ("encours", "En cours"),
("termine", "Terminé"), ("abandonne", "Abandonné"),
class Chantier(osv.Model):
- _name = "projet.chantier"
+ _name = "cmmi.axes.chantier"
- _inherit = "projet.mesurable"
+ _inherit = "projet.axes.mesurable"
_columns = {
"projet_id": fields.many2one("projet.projet",
class Palier(osv.Model):
- _name = "projet.palier"
+ _name = "cmmi.axes.palier"
+
+ _inherit = "projet.axes.mesurable"
_types_palier = [("normal", "Normal"), ("exceptionnel", "Exceptionnel"),
("correctif", "Correctif"), ("autre", "Autre")]
- _inherit = "projet.mesurable"
-
_columns = {
"type_palier": fields.selection(_types_palier, string="Type"),
"projet_id": fields.many2one("projet.projet",
class Module(osv.Model):
- _name = "projet.module"
+ _name = "cmmi.description.module"
_columns = {
"name": fields.char(string="Title", size=64, required=True),
class Domaine(osv.Model):
- _name = "projet.domaine"
+ _name = "cmmi.description.domaine"
_statuts = [("actif", "Actif"), ("inactif", "Inactif")]
class Evolution(osv.Model):
- _name = "projet.evolution"
+ _name = "cmmi.evolution"
_priorites = [("incontournable", "Incontournable"),
("necessaire", "Nécéssaire"),
class Charge(osv.Model):
- _name = "projet.charge"
+ _name = "cmmi.evolution.charge"
_columns = {
"name": fields.char(string="Title", size=64, required=True),
from openerp.osv import osv, fields
-class Role_MO(osv.Model):
+class RoleMO(osv.Model):
"""Role MO: différents types de MOE et MOA"""
- _name = "projet.role_mo"
+ _name = "cmmi.mo.role"
_statuts = [("actif", "Actif"), ("inactif", "Inactif")]
class mo(osv.Model):
- _name = "projet.mo"
+ _name = "cmmi.mo"
_rangs = [("primaire", "Primaire"),
("secondaire", "Secondaire"),
class moe(osv.Model):
- _name = "projet.moe"
- _inherit = "projet.mo"
+ _name = "cmmi.mo.moe"
+ _inherit = "cmmi.mo"
_columns = {
"projets": fields.one2many("projet.projet",
class moa(osv.Model):
- _name= "projet.moa"
- _inherit = "projet.mo"
+ _name = "cmmi.mo.moa"
+ _inherit = "cmmi.mo"
_columns = {
"projets": fields.one2many("projet.projet",
class Structure(osv.Model):
- _name = "projet.structure"
+ _name = "cmmi.mo.structure"
_statuts = [("actif", "Actif"), ("inactif", "Inactif")]
class Teammember(osv.Model):
- _name = "projet.teammember"
+ _name = "projet.partner.teammember"
_inherit = "res.partner"
from openerp.osv import osv, fields
-class Type_Phase(osv.Model):
- _name = "projet.type_phase"
+class TypePhase(osv.Model):
+ _name = "cmmi.phase.type"
_statuts = [("actif", "Actif"), ("inactif", "Inactif")]
class Phase(osv.Model):
- _name = "projet.phase"
+ _name = "cmmi.phase"
_statuts = [("actif", "Actif"), ("inactif", "Inactif")]
class Projet(osv.Model):
- _name = "projet.projet"
+ _name = "cmmi.projet"
_columns = {
"name": fields.char(string="Title", size=64, required=True),