Fix the issues of sale invoice pdf missing the payment information, it is caused by the attachment usage
add the object record's name(object.name_get()) to the downloaded PDF file name