Remove downloadd butoon from odoo’s pdf_viewer widget

  javascript, odoo, pdf-viewer, python, widget

i’m trying to desable the download button located into the attachament preview widget of Odoo (Pdf_viewer) as you can see into the code bellow:

 <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.

enter image description here

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.

Source: Ask Javascript Questions