I'm trying to disable the download button located into the attachment preview widget of Odoo (Pdf_viewer) as you can see into the code below:
<field name="preview" attrs="{'readonly': [('preview', '=', True)]}" widget="pdf_viewer" />
PS: I tried to set the field to readonly but still give for the reader the entire file.
I had a little help from a friend that suggested of changing the JS file containing the template of this button, but I don't know the steps to do that! Thank you for your helps.
