This question has been flagged
1 Reply
4400 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

Avatar
Discard
Author Best Answer

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!

Avatar
Discard