Article 1348-2 of the French Civil Code
The parties may freely agree to extinguish any mutual obligations, present or future, by way of compensation; such compensation shall take effect on the date of their agreement or, in the case of future obligations, on the date of their co-existence.