Odoo Help

0

Open a local path in the default explorer

By
Mind And Go
on 3/6/14, 1:28 PM 1,034 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!

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

0 follower(s)

Stats

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