_name = "cmmi.projet"
+ _description = "Table des projets."
+
def _get_main_domain(self, cr, uid, ids, field_name=None, arg=None, context=None):
if type(ids) in (int, float):
ids = [ids]
"projet_id",
string="Evolutions"),
# TODO: faire un champs fonction qui renvoie uniquement les domaines sélectionnés
-
+
# Champs fonction rapatriant les mo ou domaine principaux
"moe_id": fields.function(_get_main_moe,
type="string",
def action_add_moa(self, cr, uid, ids, context=None):
pass
+
+
class ProjetDomaine(osv.Model):
_name = "cmmi.projet.domaine"
+ _description = "Rattachement des domaines a un projet."
+
def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
if isinstance(ids, (int, long)):
ids = [ids]
class ProjetMoe(osv.Model):
_name = "cmmi.projet.moe"
+ _description = "Rattachement des MOEs au projet."
+
def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
if isinstance(ids, (int, long)):
ids = [ids]
return {'value': {'main': True}}
+
class ProjetMoa(osv.Model):
_name = "cmmi.projet.moa"
+ _description = "Rattachement des MOAs a une projet."
+
def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
if isinstance(ids, (int, long)):
ids = [ids]
return {'value': {'main': True}}
+
class ProjetPhase(osv.Model):
_name = "cmmi.projet.phase"
}
+
class ProjetTeammember(osv.Model):
_name = "cmmi.projet.teammember"
+ _description = "Rattachement des Team members a un projet."
+
def _get_partner_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
if isinstance(ids, (int, long)):
ids = [ids]