Skip to content

Commit

Permalink
[FIX] im_livechat: do not rename module description
Browse files Browse the repository at this point in the history
mail.channel module in mail module has the description "Discussion Channel"
(with a capital C) and was overriden in im_livechat to "Discussion channel"
(with a lowercase c).
Installing a module was renaming a field (which is never a good idea, especially
for translated fields)

closes odoo#32238

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
  • Loading branch information
mart-e committed Mar 29, 2019
1 parent 0f6038e commit 89347f4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons/crm_livechat/i18n/crm_livechat.pot
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ msgstr ""

#. module: crm_livechat
#: model:ir.model,name:crm_livechat.model_mail_channel
msgid "Discussion channel"
msgid "Discussion Channel"
msgstr ""

2 changes: 1 addition & 1 deletion addons/hr/i18n/hr.pot
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ msgstr ""

#. module: hr
#: model:ir.model,name:hr.model_mail_channel
msgid "Discussion channel"
msgid "Discussion Channel"
msgstr ""

#. module: hr
Expand Down
2 changes: 1 addition & 1 deletion addons/im_livechat/i18n/im_livechat.pot
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ msgstr ""

#. module: im_livechat
#: model:ir.model,name:im_livechat.model_mail_channel
msgid "Discussion channel"
msgid "Discussion Channel"
msgstr ""

#. module: im_livechat
Expand Down
1 change: 0 additions & 1 deletion addons/im_livechat/models/mail_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class MailChannel(models.Model):

_name = 'mail.channel'
_inherit = ['mail.channel', 'rating.mixin']
_description = 'Discussion channel'

anonymous_name = fields.Char('Anonymous Name')
channel_type = fields.Selection(selection_add=[('livechat', 'Livechat Conversation')])
Expand Down
2 changes: 1 addition & 1 deletion addons/mail_bot/i18n/mail_bot.pot
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ msgstr ""

#. module: mail_bot
#: model:ir.model,name:mail_bot.model_mail_channel
msgid "Discussion channel"
msgid "Discussion Channel"
msgstr ""

#. module: mail_bot
Expand Down
2 changes: 1 addition & 1 deletion addons/website_mail_channel/i18n/website_mail_channel.pot
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ msgstr ""

#. module: website_mail_channel
#: model:ir.model,name:website_mail_channel.model_mail_channel
msgid "Discussion channel"
msgid "Discussion Channel"
msgstr ""

#. module: website_mail_channel
Expand Down

0 comments on commit 89347f4

Please sign in to comment.