Odoo Help


how to access file in local folder?

on 4/25/14, 2:50 AM 3,565 views

how can i access a file which is located in the folder using href in xml code.for example my path for a file which is located in my localhost is /home/harmony8/Desktop/index.html..how can i access this file through href

thank you prakash..it works...

on 8/13/14, 4:02 AM



| 5 5 7
Bikaner, India

OpenERP Developer at SunARC Technology

On 4/25/14, 3:08 AM

The below steps to access html File in Openerp

  1. create custom web module.
  2. Add the file in the Location web_custom/static/src/index.html
  3. In the __openerp__.py File add the path Location.
  4. Install the web custom module in openerp

And installed the module to access the file http://localhost:PortNo/web_custom/static/src/index.html

The below code to open the link href in xml code.

<a href="#" onclick="window.open('/web_custom/static/src/index.html', '_blank')" >To Access Index Html Page</a>

Great, please mark the answer as correct if it worked for you. Thanks

on 4/25/14, 3:48 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

0 follower(s)


Asked: 4/25/14, 2:50 AM
Seen: 3565 times
Last updated: 3/23/15, 3:25 AM