diff options
| author | Christophe Matthieu <chm@openerp.com> | 2014-02-10 17:41:13 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2014-02-10 17:41:13 +0100 |
| commit | 1f21989bbbd3e63ea1aea7d0698afa8cfb306620 (patch) | |
| tree | 1a7510b5debb1e467d340a7ae08e371e163643e4 /addons/website_livechat/models/website.py | |
| parent | 1ac9b4d20d0c549be3aa51c13ae4b1448334ff5b (diff) | |
[FIX] website_livechat: add res_config file for configuration of the channel
bzr revid: chm@openerp.com-20140210164113-41vl0ftlk9eybnlw
Diffstat (limited to 'addons/website_livechat/models/website.py')
| -rw-r--r-- | addons/website_livechat/models/website.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/addons/website_livechat/models/website.py b/addons/website_livechat/models/website.py index 7e86042a67a..3e3df1c5bdc 100644 --- a/addons/website_livechat/models/website.py +++ b/addons/website_livechat/models/website.py @@ -5,4 +5,11 @@ class website(osv.osv): _columns = { 'channel_id': fields.many2one('im_livechat.channel', string="Channel"), - }
\ No newline at end of file + } + +class website_config_settings(osv.osv_memory): + _inherit = 'website.config.settings' + + _columns = { + 'channel_id': fields.related('website_id', 'channel_id', type='many2one', relation='im_livechat.channel', string='Live Chat Channel'), + } |
