Client error opening attachments window with es language
Upon clicking on the attachments icon of a record whose rec_name has been overriden not to return the bare id (in this case the rec_name could be cast into an integer and I guess this would not happen) this error shows:
TypeError: %d format: a number is required, not unicode
This is due to the fact that many translations for 'Attachments (%s)' will contain %d instead. E.g. 'Allegato(%d)' for "it" language. Since the code tries to format this string with the record rec_name, the execution will break whenever the rec_name can't be cast into a number.
As of this report, the following language are probably affected: bg, cs, es, es_419, hu_HU, it_IT, ja_JP, lt, nl, ru, zh_CN