The thing is, if it's just a national thing, then it at least seems to be 'infectuous' to the foreign population - we have ~25% foreigners in Switzerland, many of them French. If most of them would steal, farmers would stop doing that very soon - but so far it seems to work just fine.
But hey, weighing your produce yourself at the supermarket is also a thing here, and it works fine as well. Sometimes I think it's just a part of society, no matter the cultural, ethnical or economical background people have - if you trust them to "do the right thing", most suddenly feel sort of honoured and obligated to behave the right way. If you put police everywhere and assume people to be criminal first, they will act accordingly (test their 'freedom' as soon as noone is looking). It probably doesn't work if it's just one farmer / supermarket doing it, but I think when it's a common part of society, it suddenly works.