- _columns = {
- "name": fields.char(string="Title", size=64, required=True),
- "description": fields.text(string="Description"),
- "domaines": fields.many2many("projet.domaine",
- "projet_projet_domaine_rel",
- "projets",
- string="Domaines"),
- "structures": fields.many2many("projet.structure",
- "projet_projet_structure_rel",
- "projets",
- string="Structures"),
- "structures_moe": fields.many2many("projet.structure",
- "projet_projet_structure_rel",
- "projets",
- string="Structures",
- domain=[('role_mo_id.type_mo', '=', "MOE")]),
- "structures_moa": fields.many2many("projet.structure",
- "projet_projet_structure_rel",
- "projets",
- string="Structures",
- domain=[('role_mo_id.type_mo', '=', "MOA")]),
- "team_members": fields.many2many("projet.teammember",
- "projet_projet_teammember_rel",
- "projets",
- string="Team Members"),
- "modules": fields.one2many("projet.module",
- "projet_id",
- string="Modules"),
- "chantiers": fields.one2many("projet.chantier",
- "projet_id",
- string="Chantiers"),
- "paliers": fields.one2many("projet.palier",
- "projet_id",
- string="Paliers"),
- "phases": fields.one2many("projet.phase",
- "projet_id",
- string="Phases"),
- "evolutions":fields.one2many("projet.evolution",
- "projet_id",
- string="Evolutions"),
- "moe_id": fields.many2one("projet.moe", string="MoE", required=True),
- "moa_id": fields.many2one("projet.moa", string="MoA", required=True),
- "main_domain": fields.many2one("projet.domaine",
- string="Domaine principal"),
- "main_structure": fields.many2one("projet.structure",
- string="Structure principale"),
- }