What is the physical path of Odoo webserver?

I'm building a custom odoo module that will be using several Javascript libraries. I need to add references to those libraries (local references) but I don't know exactly where to place those libraries and how to refer to their location.

What I tried: - I created the new module and placed the libraries inside the module directory but it didn't work. - I also placed the libraries in the home directory of odoo.

As I understand, the problem would be solved if I could get the default directory of the webserver that odoo runs on.


If module is using js files, then you must put these files inside your module. And still if you cant reach these files from your module its your technical error and you have to fix it yourself, also note that odoo has its js libraries already

I found this page: how to add css and js files in Openerp 7 / Odoo module maybe can help you.

Below is the content.

  1. Store files correctly: CSS and JS files should be reside under 'static' directory in the module(the rest of subdirectory tree under 'static' is an optional convention):

    • static/src/css/your_file.css
    • static/src/js/your_file.js
  2. Add files in manifest (v7.0) or in XML(v8.0)

    • Openerp v7.0 way is to add following entries in manifest (in openerp.py): ... 'css': ['static/src/css/your_file.css'], 'js': [static/src/js/your_file.js'], ...

    • Odoo v8.0 way is to add corresponding record in the XML: Add XML to the manifest (openerp.py): ... 'data': [ 'your_file.xml'], ... Then add following record in 'your_file.xml':

        <template id="assets_backend" name="your_module_name assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
                <link rel='stylesheet' href="/your_module_name/static/src/css/your_file.css"/>
                <script type="text/javascript" src="/your_module_name/static/src/js/your_file.js"></script>

Need Your Help

LDAP Script Help - Put ldapserach command results in single quotes

bash shell

The following script works, but I need help with one change. Right now using lday serach, and a little utility called GETPASS, this script will pull a listy users, from a specified context out of an