Odoo Help

0

function python or javascript to download the current file pdf ?

By
kaisusr
on 9/23/14, 4:33 AM 614 views

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 ?

0
Ben Bernard
On 9/23/14, 5:39 AM

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.

is not available.. I am using ubuntu version of OpenERP. Can you please help
Atchuthan - Technical Consultant, Sodexis Inc
on 9/23/14, 5:53 AM

Sigh, I use the old source. Sorry.

Ben Bernard
on 9/23/14, 5:58 AM

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

kaisusr
on 9/23/14, 5:58 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/23/14, 4:33 AM
Seen: 614 times
Last updated: 3/16/15, 8:10 AM