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

Open a local path in the default explorer

By
Mind And Go
on 3/6/14, 1:28 PM 816 views

Hy,

I'm looking for a way to open local path from openerp. I've created a filed that display something like that with a widget="url"

<a href="file:///path/to/local/ressource" class="oe_form_uri" target="_blank">file:///path/to/local/ressource</a>

Unfortunately, clicking on this link open nothing. Is there a way to do this through a new widget, an onclick() method....

I tried a simple

 window.open('file:///path/to/local/ressource')

No more success

Is there another way to deal with this like specific actions?

Any help/idea would be appreciated

regards

0
Mind And Go
On 3/7/14, 12:44 PM

Yipeeeee!

After many months of search, we found the answer. Of course it's a specific answer for Mac environnement.

I only produce a link that is starting with "/" instead of "file:///" And now, the web browser allow us to right clic and choose to open.... in the file browser of course!!!

Great!

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

0 follower(s)

Stats

Asked: 3/6/14, 1:28 PM
Seen: 816 times
Last updated: 3/16/15, 8:10 AM