def METHOD_NAME(self, node, fields, vals, path, attr):
    if attr[0] == "enderEmit" and self.env.context.get("edoc_type") == "in":
        # we don't want to try build a related partner_id for enderEmit
        # when importing an NFe
        # instead later the emit tag will be imported as the
        # document partner_id (dest) and the enderEmit data will be
        # injected in the same res.partner record.
        return
    return super().METHOD_NAME(node, fields, vals, path, attr)