[MERGE][IMP] im_livechat, website_livechat : update website default livechat
In order to facilitiate the configuration of a livechat on the website, the first livechat channel that was demo data from im_livechat is now set as data. Website is now using this first livechat channel instead of creating a new one and using it. Merge related to task ID 1912056. closes odoo/odoo#29020
This commit is contained in:
@@ -20,6 +20,7 @@ Help your customers with this chat, and analyse their feedback.
|
||||
""",
|
||||
'data': [
|
||||
"data/mail_shortcode_data.xml",
|
||||
"data/im_livechat_channel_data.xml",
|
||||
"security/im_livechat_channel_security.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"views/rating_views.xml",
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="im_livechat_channel_data" model="im_livechat.channel">
|
||||
<field name="name">YourWebsite.com</field>
|
||||
<field name="default_message">Hello, how may I help you?</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -1,20 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="im_livechat_channel_demo" model="im_livechat.channel">
|
||||
<field name="name">YourWebsite.com</field>
|
||||
<field name="default_message">Hello, how may I help you?</field>
|
||||
</record>
|
||||
|
||||
<record id="im_livechat_channel_rule_demo" model="im_livechat.channel.rule">
|
||||
<field name="regex_url">/im_livechat/</field>
|
||||
<field name="action">auto_popup</field>
|
||||
<field name="auto_popup_timer">3</field>
|
||||
<field name="channel_id" ref="im_livechat_channel_demo" />
|
||||
<field name="channel_id" ref="im_livechat_channel_data" />
|
||||
</record>
|
||||
|
||||
<record id="im_livechat.im_livechat_group_user" model="res.groups">
|
||||
<field name="users" eval="[(4, ref('base.user_demo'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="im_livechat_channel_data" model="im_livechat.channel">
|
||||
<field name="user_ids" eval="[(4, ref('base.user_admin'))]"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
@@ -1,14 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
|
||||
<record id="im_livechat_channel_data_website" model="im_livechat.channel">
|
||||
<field name="name">YourWebsiteWithOdoo.com</field>
|
||||
<field name="default_message">Hello, how may I help you?</field>
|
||||
</record>
|
||||
|
||||
<record id="website.default_website" model="website">
|
||||
<field name="channel_id" ref="website_livechat.im_livechat_channel_data_website"></field>
|
||||
<field name="channel_id" ref="im_livechat.im_livechat_channel_data"></field>
|
||||
</record>
|
||||
|
||||
<record id="menu_livechat" model="website.menu">
|
||||
|
||||
Reference in New Issue
Block a user