'Recursively search in categories to find an intrastat code id'

@api.multi
def get_intrastat_recursively(self):

    res = None
    if self.intrastat_id:
        res = self.intrastat_id.id
    elif self.categ_id:
        res = self.categ_id.get_intrastat_recursively()
    return res
