Method for manufacturing a photovoltaic module with annealing for forming a photovoltaic layer and electrically conducting region