Browse Source

[FIX] Remove obsolete instruct (JS) in __openerp.py

In the new version of Odoo the JS is appended using template and xpath
Check this file : view/res_users_view
pull/28/head
Adil Houmadi 10 years ago
parent
commit
43d2fb636a
  1. 3
      web_easy_switch_company/__openerp__.py
  2. 2
      web_easy_switch_company/view/res_users_view.xml

3
web_easy_switch_company/__openerp__.py

@ -60,9 +60,6 @@ Copyright, Author and Licence:
'data': [ 'data': [
'view/res_users_view.xml', 'view/res_users_view.xml',
], ],
'js': [
'static/src/js/switch_company.js',
],
'qweb': [ 'qweb': [
'static/src/xml/switch_company.xml', 'static/src/xml/switch_company.xml',
], ],

2
web_easy_switch_company/view/res_users_view.xml

@ -14,7 +14,7 @@
</field> </field>
</record> </record>
<template id="assets_backend" name="web_tests assets" inherit_id="web.assets_backend">
<template id="assets_backend" name="web_easy_switch_company assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside"> <xpath expr="." position="inside">
<script type="text/javascript" src="/web_easy_switch_company/static/src/js/switch_company.js"></script> <script type="text/javascript" src="/web_easy_switch_company/static/src/js/switch_company.js"></script>
</xpath> </xpath>

Loading…
Cancel
Save