Skip to content
Snippets Groups Projects
Commit a569de0b authored by Fernanda Hernández's avatar Fernanda Hernández Committed by Sébastien Theys
Browse files

[REF] im_livechat: make translatable some fields in im_livechat.channel model


Fields are:

1. button_text
2. default_message
3. input_placeholder

closes odoo/odoo#111837

X-original-commit: 5bf0df88
Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
parent a84bca54
No related branches found
No related tags found
No related merge requests found
......@@ -28,11 +28,11 @@ class ImLivechatChannel(models.Model):
# attribute fields
name = fields.Char('Name', required=True, help="The name of the channel")
button_text = fields.Char('Text of the Button', default=_('Have a Question? Chat with us.'),
button_text = fields.Char('Text of the Button', default=_('Have a Question? Chat with us.'), translate=True,
help="Default text displayed on the Livechat Support Button")
default_message = fields.Char('Welcome Message', default='How may I help you?',
default_message = fields.Char('Welcome Message', default='How may I help you?', translate=True,
help="This is an automated 'welcome' message that your visitor will see when they initiate a new conversation.")
input_placeholder = fields.Char('Chat Input Placeholder', help='Text that prompts the user to initiate the chat.')
input_placeholder = fields.Char('Chat Input Placeholder', translate=True, help='Text that prompts the user to initiate the chat.')
header_background_color = fields.Char(default="#875A7B", help="Default background color of the channel header once open")
title_color = fields.Char(default="#FFFFFF", help="Default title color of the channel once open")
button_background_color = fields.Char(default="#878787", help="Default background color of the Livechat button")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment