Salome HOME
commentaire
[tools/eficas.git] / Noyau / N_ENTITE.py
index 27e13d503758fc332933e5f56d4c9e434a00e7a6..d9387e293f3259ba4d0018d18af0194cd37a4e31 100644 (file)
@@ -252,7 +252,7 @@ class ENTITE(object):
     def check_into(self):
         """Vérifie l'attribut into."""
         if self.into != None:
-            if type(self.into) not in (list, tuple):
+            if (type(self.into) not in (list, tuple)) and (type(self.into) != types.FunctionType) :
                 self.cr.fatal(
                     _(u"L'attribut 'into' doit être un tuple : %r"), self.into)