Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4258 Weergaven

someone can help me i want to make a button to download the current file pdf, in openerp ya can only make a link but , for me i must make a button , so i search a function in python or javascript that can help me ?

Avatar
Annuleer
Beste antwoord

Quick and dirty hack (I'm using windows):

    openerp\addons\web\static\src\xml\base.xml

look at "<t t-name="FieldURI.readonly">"

change related line to this

    <a href="#" class="oe_button oe_form_uri"/>

 

That will change attachment url style to look like button.

Avatar
Annuleer
is not available.. I am using ubuntu version of OpenERP. Can you please help

Sigh, I use the old source. Sorry.

Auteur

can't find FieldURI.readonly ?? in base.xml