do not create a secondary object if there's no mailnumber

This commit is contained in:
Frédéric Péters 2011-09-04 14:42:52 +02:00
parent 263a1593f6
commit f9f3a3c1c0
1 changed files with 4 additions and 0 deletions

View File

@ -157,6 +157,10 @@ class Migrate(BrowserView):
# this document was not completed, do not create a secondary object
second_object_typename = None
if not ob.mailnumber:
# if there's no mailnumber, do not create a secondary object
second_object_typename = None
if second_object_typename:
# XXX: this is a temporary location, no decision has been taken yet
# on the location of those documents