From f9813b2c5a4e69e23270aca1123390edb84dabe9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20CHAZALLET?= Date: Thu, 23 May 2013 14:44:39 +0200 Subject: [PATCH] Champs des wizards maintenant obligatoires --- wizards/domaine.py | 6 ++++-- wizards/moa.py | 6 ++++-- wizards/moe.py | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/wizards/domaine.py b/wizards/domaine.py index 2304a2e..29b5c5d 100644 --- a/wizards/domaine.py +++ b/wizards/domaine.py @@ -117,8 +117,10 @@ class ProjetDomaineWizard(osv.TransientModel): _columns = { "main": fields.boolean(string="Domaine principal ?"), "project_id": fields.many2one("cmmi.projet", - string="Projet"), + string="Projet", + required=True), "domaine_id": fields.selection(_domaines_selection, - string="Domaine"), + string="Domaine", + required=True), } diff --git a/wizards/moa.py b/wizards/moa.py index 68b8ce3..28232a5 100644 --- a/wizards/moa.py +++ b/wizards/moa.py @@ -108,7 +108,9 @@ class ProjetMoaWizard(osv.TransientModel): _columns = { "main": fields.boolean(string="MOA principale ?"), "project_id": fields.many2one("cmmi.projet", - string="Projet"), + string="Projet", + required=True), "moa_id": fields.selection(_moas_selection, - string="moa"), + string="moa", + required=True), } \ No newline at end of file diff --git a/wizards/moe.py b/wizards/moe.py index 1509b1c..37399bc 100644 --- a/wizards/moe.py +++ b/wizards/moe.py @@ -108,7 +108,9 @@ class ProjetMoeWizard(osv.TransientModel): _columns = { "main": fields.boolean(string="MOE principale ?"), "project_id": fields.many2one("cmmi.projet", - string="Projet"), + string="Projet", + required=True), "moe_id": fields.selection(_moes_selection, - string="MOE"), + string="MOE", + required=True), } \ No newline at end of file -- 1.7.10.4