Odoo Help


function python or javascript to download the current file pdf ?

on 9/23/14, 4:33 AM 670 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 ?


Ben Bernard

--Ben Bernard--

| 4 3 6
Jakarta, Indonesia
--Ben Bernard--
Ben Bernard
On 9/23/14, 5:39 AM

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


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

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.


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)


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