odoo-8 Add CSS and Javascript files to Odoo module Option 3: [COMMON] Add CSS and Javascript files to use in all pages (backend & frontend)


Example

  • Add following record in 'your_file.xml':
    <openerp>
        <data>  

            <template id="assets_common" name="your_module_name assets" inherit_id="web.assets_common">  
                <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>  
                </xpath>  
            </template>  
  
        </data>  
     </openerp>