Index: /main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
===================================================================
--- /main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py	(revision 13845)
+++ /main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py	(revision 13846)
@@ -166,4 +166,9 @@
         self.assertEqual(self.student.matric_number, 'AAU/SPS/ABC/dep1/04/AGRB/00001')
         self.assertEqual(site['configuration'].next_matric_integer_3, 2)
+        self.student.matric_number = None
+        # students in IOE don't have a department
+        self.app['faculties']['fac1'].code = 'IOE'
+        msg, mnumber = utils.setMatricNumber(self.student)
+        self.assertEqual(self.student.matric_number, 'AAU/SPS/IOE/04/AGRB/00002')
         # Diploma Students get a matric number with leading 'IOS'
         # and the dp counter which is next_matric_integer_3.
Index: /main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
===================================================================
--- /main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py	(revision 13845)
+++ /main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py	(revision 13846)
@@ -86,4 +86,7 @@
             if not degree or next_integer == 0:
                 return _('Matriculation number cannot be set.'), None
+            if student.faccode in ('IOE'):
+                return None, "AAU/SPS/%s/%s/%s/%05d" % (
+                    faccode, year, degree, next_integer)
             return None, "AAU/SPS/%s/%s/%s/%s/%05d" % (
                 faccode, depcode, year, degree, next_integer)
