[UPD] In create method, use name field unless name_get

In create method, use name unless name_get to define res_name value.
In account.voucher model, the name_get return the amount, and we don't want this, we would like to get the name field.
This field is already defined in ir.attachment: I don't know what you really want to say ?