Browse Source

Port to OpenERP v8.0

pull/8/head
Alexis de Lattre 10 years ago
parent
commit
16339461d7
  1. 2
      asterisk_click2dial/__openerp__.py
  2. 6
      asterisk_click2dial/static/src/xml/asterisk_click2dial.xml
  3. 22
      asterisk_click2dial/web_asterisk_click2dial.xml
  4. 6
      base_phone/__openerp__.py
  5. 0
      base_phone/static/lib/phonenumbers/PhoneFormat.js
  6. 24
      base_phone/web_phone.xml

2
asterisk_click2dial/__openerp__.py

@ -59,6 +59,7 @@ A detailed documentation for this module is available on the Akretion Web site :
'res_users_view.xml', 'res_users_view.xml',
'wizard/open_calling_partner_view.xml', 'wizard/open_calling_partner_view.xml',
'security/ir.model.access.csv', 'security/ir.model.access.csv',
'web_asterisk_click2dial.xml',
], ],
'demo': ['asterisk_click2dial_demo.xml'], 'demo': ['asterisk_click2dial_demo.xml'],
'images': [ 'images': [
@ -66,7 +67,6 @@ A detailed documentation for this module is available on the Akretion Web site :
'images/sshot-open_calling_party.jpg', 'images/sshot-open_calling_party.jpg',
], ],
'qweb': ['static/src/xml/*.xml'], 'qweb': ['static/src/xml/*.xml'],
'js': ['static/src/js/*.js'],
'css': ['static/src/css/*.css'], 'css': ['static/src/css/*.css'],
'application': True, 'application': True,
'installable': True, 'installable': True,

6
asterisk_click2dial/static/src/xml/asterisk_click2dial.xml

@ -11,8 +11,10 @@
<t t-name="asterisk_click2dial.OpenCallingPartner"> <t t-name="asterisk_click2dial.OpenCallingPartner">
<div title="Open Calling Partner" <div title="Open Calling Partner"
class="oe_topbar_item oe_topbar_open_calling_partner"> class="oe_topbar_item oe_topbar_open_calling_partner">
<button class="oe_i">A</button>
<!-- oe_i is a special icon font : 'A' represents a phone -->
<button>Tel</button>
<!-- oe_i is a special icon font : 'A' represents a phone
BUT I didn't manage to make it work on v8... so I use
a horrible "Tel" button TODO : better button -->
</div> </div>
</t> </t>

22
asterisk_click2dial/web_asterisk_click2dial.xml

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Asterisk Click2dial module for OpenERP/Odoo
Copyright (C) 2014 Alexis de Lattre <alexis@via.ecp.fr>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<template id="assets_backend" name="asterisk_click2dial assets"
inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript"
src="/asterisk_click2dial/static/src/js/asterisk_click2dial.js"></script>
</xpath>
</template>
</data>
</openerp>

6
base_phone/__openerp__.py

@ -59,14 +59,10 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
'res_company_view.xml', 'res_company_view.xml',
'res_users_view.xml', 'res_users_view.xml',
'wizard/reformat_all_phonenumbers_view.xml', 'wizard/reformat_all_phonenumbers_view.xml',
],
'js': [
'static/src/js/*.js',
'static/lib/js/*.js',
'web_phone.xml',
], ],
'qweb': ['static/src/xml/*.xml'], 'qweb': ['static/src/xml/*.xml'],
'demo': ['base_phone_demo.xml'], 'demo': ['base_phone_demo.xml'],
'images': [], 'images': [],
'installable': True, 'installable': True,
'active': False,
} }

0
base_phone/static/lib/js/PhoneFormat.js → base_phone/static/lib/phonenumbers/PhoneFormat.js

24
base_phone/web_phone.xml

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Base Phone module for OpenERP
Copyright (C) 2014 Alexis de Lattre <alexis@via.ecp.fr>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<template id="assets_backend" name="base_phone assets"
inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript"
src="/base_phone/static/lib/phonenumbers/PhoneFormat.js"></script>
<script type="text/javascript"
src="/base_phone/static/src/js/phone_widget.js"></script>
</xpath>
</template>
</data>
</openerp>
Loading…
Cancel
Save