def METHOD_NAME(self):
    self.ensure_one()
    res = 0.0
    if self.amount_type == "group":
        for child in self.children_tax_ids:
            res += child.amount
    else:
        res = self.amount
    return res