Cannot attach files to a singleton model until update the record

Hi,
I am working on a singleton model to make a configuration record, as it is usual on tryton (tryton 6.0). At the time when I install the module where it is defined and try to attach a file to it, it gaves me an error saying:

A value is required for field “Resource” in “image.jpg” of “Attachment”

I could “avoid” the error doing a minimal modification on the record, saving it, and after that attach the file without an error

Please fill an issue.
As the client can not distinct between an actually saved singleton and a pseudo-record with default value, I guess we need to tune the Reference field to accept any record pointing to a singleton.