Odoo Help

Welcome!

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

0

function python or javascript to download the current file pdf ?

By
kaisusr
on 9/23/14, 4:33 AM 461 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

--Ben Bernard--
1083
| 4 3 6
Jakarta, Indonesia
--Ben Bernard--
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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