def _add_child_pictures_to_typo3(self, cr, uid, ids, context=None):
        for child in self.browse(cr, uid, ids, context):

            head_image = child.code + "_h.jpg"
            full_image = child.code + "_f.jpg"

            file_head = open(head_image, "wb")
            file_head.write(base64.b64decode(child.portrait))
            file_head.close()

            file_fullshot = open(full_image, "wb")
            file_fullshot.write(base64.b64decode(child.fullshot))
            file_fullshot.close()

            Sync_typo3.add_child_photos(head_image, full_image)
    def _add_child_pictures_to_typo3(self, cr, uid, ids, context=None):
        for child in self.browse(cr, uid, ids, context):
            head_image = child.local_id + "_h.jpg"
            full_image = child.local_id + "_f.jpg"

            file_head = open(head_image, "wb")
            file_head.write(base64.b64decode(child.portrait))
            file_head.close()

            file_fullshot = open(full_image, "wb")
            file_fullshot.write(base64.b64decode(child.fullshot))
            file_fullshot.close()

            Sync_typo3.add_child_photos(head_image, full_image)
            os.remove(head_image)
            os.remove(full_image)