Method for producing a thin film having photovoltaic properties, based on a I-III-VI2 alloy and deposited by electrolysis, said method comprising at least the steps of:
- a) successively depositing layers of metal elements I and III,
- b) and applying a thermal post-treatment with an addition of element VI, wherein step a) comprises the following operations:
- a1) depositing a multilayer structure comprising at least:
- two layers of element I and
- two layers of element III,
- in at least one alternating sequence of the layers I/III/I/III or III/I/III/I, and
- a2) annealing this structure before adding element VI to obtain a layer of I-III alloy.