[IMP] new module for integrating livechat into website

bzr revid: ddm@openerp.com-20140124125140-pr9h42j6p6kp31qt
This commit is contained in:
ddm@openerp.com 2014-01-24 13:51:40 +01:00
parent 6f859860e9
commit fb49ef287c
5 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1 @@
import models

View File

@ -0,0 +1,21 @@
{
'name': 'Website LiveChat',
'category': 'Website',
'summary': 'Instant Messaging for your Website',
'version': '1.0',
'description': """
OpenERP Website LiveChat
========================
""",
'author': 'OpenERP SA',
'depends': ['website', 'im_livechat'],
'installable': True,
'data': [
'views/website_livechat.xml'
],
'demo': [ ],
'js': [],
'qweb': [],
'css': [],
}

View File

@ -0,0 +1 @@
import website

View File

@ -0,0 +1,8 @@
from openerp.osv import osv, fields
class website(osv.osv):
_inherit = "website"
_columns = {
'channel_id': fields.many2one('im_livechat.channel', string="Channel"),
}

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="website_settings_livechat" model="ir.ui.view">
<field name="name">website.form</field>
<field name="model">website</field>
<field name="inherit_id" ref="website.view_website_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='other']" position='before'>
<div name="livechat">
<separator string="LiveChat"/>
<group name="livechat">
<field name="channel_id" widget="many2one"/>
</group>
</div>
</xpath>
</field>
</record>
</data>
</openerp>