If France hates Spain like the plague then I don't think a line in the AI file should be able to keep them at peace IMO. Or you should have an event which checks the relationship between the nations and can turn on and off this.. But would be better to have this tied to the relations directly.