Skip to content

Commit

Permalink
[UPG] viin_brand_im_livechat: upgrade to version 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SonCrits committed Jul 10, 2024
1 parent 3311a20 commit c510ae8
Show file tree
Hide file tree
Showing 11 changed files with 152 additions and 42 deletions.
1 change: 1 addition & 0 deletions viin_brand_im_livechat/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
7 changes: 5 additions & 2 deletions viin_brand_im_livechat/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,17 @@
'data/im_livechat_channel_demo.xml'
],
'data': [
# 'security/ir.model.access.csv',
'data/digest_data.xml',
'data/im_livechat_chatbot_data.xml',
'data/mail_templates.xml',
'views/im_livechat_channel_templates.xml',
'views/im_livechat_channel_views.xml'
],
'images': [
# 'static/description/main_screenshot.png'
],
'installable': False, # set auto_install True after upgrading for v17 after upgrading for v17
'installable': True,
'auto_install': True,
'price': 0.0,
'currency': 'EUR',
'license': 'OPL-1',
Expand Down
21 changes: 21 additions & 0 deletions viin_brand_im_livechat/data/digest_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<odoo>
<data>
<record id="im_livechat.digest_tip_im_livechat_0" model="digest.tip">
<field name="tip_description" type="html">
<div>
<p class="tip_title">Tip: Use canned responses to chat faster
</p>
<p class="tip_content">Use canned responses to define templates
of
messages in the livechat app. To load a canned
response, start your sentence with ':' and select
the template.
</p>
<img
src="im_livechat/static/src/img/milk-canned-responses.gif"
width="540" class="illustration_border" />
</div>
</field>
</record>
</data>
</odoo>
23 changes: 11 additions & 12 deletions viin_brand_im_livechat/data/im_livechat_channel_demo.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<?xml version="1.0"?>
<odoo>
<data>
<record id="im_livechat.im_livechat_mail_message_20_data" model="mail.message">
<field name="model">mail.channel</field>
<field name="res_id" ref="im_livechat.im_livechat_mail_channel_data_4"/>
<field name="message_type">email</field>
<field name="author_id" ref="base.partner_admin"/>
<record id="im_livechat.livechat_channel_session_5_message_3" model="mail.message">
<field name="body">Hi, if you need help with your database, feel free to contact our support via http://www.viindoo.com/ticket</field>
<field eval="DateTime.today() + relativedelta(months=-2, days=-4, minutes=20)" name="date"/>
</record>
<record id="im_livechat.im_livechat_mail_message_24_data" model="mail.message">
<field name="model">mail.channel</field>
<field name="res_id" ref="im_livechat.im_livechat_mail_channel_data_5"/>
<field name="message_type">email</field>
<field name="author_id" ref="base.partner_admin"/>
<record id="im_livechat.livechat_channel_session_6_message_3" model="mail.message">
<field name="body">Yes, of course, you can find it here: https://viindoo.com/documentation/16.0/applications.html</field>
<field eval="DateTime.today() + relativedelta(months=-3, days=-5, minutes=24)" name="date"/>
</record>
<record id="im_livechat.livechat_channel_session_2_message_2" model="mail.message">
<field name="body">I was wondering if Viindoo has an application to easily manage social media for my business..</field>
</record>
<record id="im_livechat.livechat_channel_session_2_message_5" model="mail.message">
<field name="body">You're welcome, enjoy Viindoo!</field>
</record>
<record id="im_livechat.livechat_channel_session_4_message_2" model="mail.message">
<field name="body">Hello Joel Willis, you're at the right place! You can customize Viindoo using our Studio application in just a few clicks.</field>
</record>
</data>
</odoo>
9 changes: 9 additions & 0 deletions viin_brand_im_livechat/data/im_livechat_chatbot_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<odoo>
<data noupdate="1">

<record id="im_livechat.chatbot_script_welcome_bot" model="chatbot.script">
<field name="image_1920" type="base64" file="viin_brand/static/img/viindoobot.png" />
</record>

</data>
</odoo>
9 changes: 9 additions & 0 deletions viin_brand_im_livechat/data/mail_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<odoo>
<template id="livechat_email_template" inherit_id="im_livechat.livechat_email_template">
<xpath expr="//table[1]/tr[2]/td[1]" position="replace" mode="inner">
<td align="center" style="min-width: 590px;">
Powered by <a target="_blank" href="https://viindoo.com?utm_source=db&amp;utm_medium=email" style="color: #875A7B;">Viindoo</a>
</td>
</xpath>
</template>
</odoo>
46 changes: 43 additions & 3 deletions viin_brand_im_livechat/i18n/vi_VN.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-15 09:37+0000\n"
"PO-Revision-Date: 2023-02-15 09:37+0000\n"
"POT-Creation-Date: 2024-07-10 09:39+0000\n"
"PO-Revision-Date: 2024-07-10 09:39+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -20,6 +20,21 @@ msgstr ""
msgid "<strong>Viindoo</strong>"
msgstr ""

#. module: viin_brand_im_livechat
#: model:ir.model.fields,field_description:viin_brand_im_livechat.field_im_livechat_channel__button_background_color
msgid "Button Background Color"
msgstr "Màu nền của nút"

#. module: viin_brand_im_livechat
#: model:ir.model.fields,help:viin_brand_im_livechat.field_im_livechat_channel__button_background_color
msgid "Default background color of the Livechat button"
msgstr "Màu nền mặc định cho nút Chat trực tuyến"

#. module: viin_brand_im_livechat
#: model:ir.model.fields,help:viin_brand_im_livechat.field_im_livechat_channel__header_background_color
msgid "Default background color of the channel header once open"
msgstr "Màu nền mặc định cho header của kênh khi nó được mở ra"

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.im_livechat_channel_view_form
msgid ""
Expand All @@ -31,6 +46,16 @@ msgstr ""
"Thiết lập và chọn Kênh chat trực tuyến ở website mà bạn muốn thêm vào "
"website của bạn"

#. module: viin_brand_im_livechat
#: model:ir.model.fields,field_description:viin_brand_im_livechat.field_im_livechat_channel__header_background_color
msgid "Header Background Color"
msgstr "Màu nền Header"

#. module: viin_brand_im_livechat
#: model:ir.model,name:viin_brand_im_livechat.model_im_livechat_channel
msgid "Livechat Channel"
msgstr "Kênh Chat Trực tuyến"

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.im_livechat_channel_view_form
msgid ""
Expand All @@ -39,3 +64,18 @@ msgid ""
msgstr ""
"Những người vận hành mà không có bất cứ hoạt động nào trong Viindoo nhiều "
"hơn 30 phút được coi là không kết nối."

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.livechat_email_template
msgid "Powered by"
msgstr ""

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.livechat_email_template
msgid "Viindoo"
msgstr ""

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.livechat_email_template
msgid "https://viindoo.com?utm_source=db&utm_medium=email"
msgstr ""
46 changes: 43 additions & 3 deletions viin_brand_im_livechat/i18n/viin_brand_im_livechat.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-15 09:37+0000\n"
"PO-Revision-Date: 2023-02-15 09:37+0000\n"
"POT-Creation-Date: 2024-07-10 09:39+0000\n"
"PO-Revision-Date: 2024-07-10 09:39+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -20,6 +20,21 @@ msgstr ""
msgid "<strong>Viindoo</strong>"
msgstr ""

#. module: viin_brand_im_livechat
#: model:ir.model.fields,field_description:viin_brand_im_livechat.field_im_livechat_channel__button_background_color
msgid "Button Background Color"
msgstr ""

#. module: viin_brand_im_livechat
#: model:ir.model.fields,help:viin_brand_im_livechat.field_im_livechat_channel__button_background_color
msgid "Default background color of the Livechat button"
msgstr ""

#. module: viin_brand_im_livechat
#: model:ir.model.fields,help:viin_brand_im_livechat.field_im_livechat_channel__header_background_color
msgid "Default background color of the channel header once open"
msgstr ""

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.im_livechat_channel_view_form
msgid ""
Expand All @@ -28,9 +43,34 @@ msgid ""
"your website."
msgstr ""

#. module: viin_brand_im_livechat
#: model:ir.model.fields,field_description:viin_brand_im_livechat.field_im_livechat_channel__header_background_color
msgid "Header Background Color"
msgstr ""

#. module: viin_brand_im_livechat
#: model:ir.model,name:viin_brand_im_livechat.model_im_livechat_channel
msgid "Livechat Channel"
msgstr ""

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.im_livechat_channel_view_form
msgid ""
"Operators that do not show any activity In Viindoo for more than 30 minutes "
"will be considered as disconnected."
msgstr ""

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.livechat_email_template
msgid "Powered by"
msgstr ""

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.livechat_email_template
msgid "Viindoo"
msgstr ""

#. module: viin_brand_im_livechat
#: model_terms:ir.ui.view,arch_db:viin_brand_im_livechat.livechat_email_template
msgid "https://viindoo.com?utm_source=db&utm_medium=email"
msgstr ""
1 change: 1 addition & 0 deletions viin_brand_im_livechat/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import im_livechat_channel
9 changes: 9 additions & 0 deletions viin_brand_im_livechat/models/im_livechat_channel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from odoo import fields, models


class ImLivechatChannel(models.Model):
_inherit = 'im_livechat.channel'

# override to debranding livechat of odoo
header_background_color = fields.Char(default="#7f4282")
button_background_color = fields.Char(default="#7f4282")
22 changes: 0 additions & 22 deletions viin_brand_im_livechat/static/src/legacy/public_livechat.scss

This file was deleted.

0 comments on commit c510ae8

Please sign in to comment.