From 050ad8e189f197ed18670ac73efe0413dd0df751 Mon Sep 17 00:00:00 2001 From: Nans Lefebvre Date: Thu, 2 May 2019 12:39:02 +0000 Subject: [FIX] mail: clean context when running email action The action_subtask method adds 'default_parent_id' to the context. If the creation or edition of a subtasks triggers an email creation, (e.g. if there is an automated action 'send email') the default 'default_parent_id' is still in the context. Therefore, it tries to create the email with an arbitrary foreign key (since it is an existing record on the project.task model), or crashes. Similar to 816f3861. opw 1978498 closes odoo/odoo#33111 Signed-off-by: Nans Lefebvre (len) --- addons/mail/models/ir_actions.py | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/mail') diff --git a/addons/mail/models/ir_actions.py b/addons/mail/models/ir_actions.py index 40582b1d803..203304c7fb7 100644 --- a/addons/mail/models/ir_actions.py +++ b/addons/mail/models/ir_actions.py @@ -112,6 +112,7 @@ class ServerActions(models.Model): # with wrong values in subsequent operations cleaned_ctx = dict(self.env.context) cleaned_ctx.pop('default_type', None) + cleaned_ctx.pop('default_parent_id', None) action.template_id.with_context(cleaned_ctx).send_mail(self._context.get('active_id'), force_send=False, raise_exception=False) return False -- cgit v1.2.3 From c924356d9e95d592b6834a6ecc443a598c12530d Mon Sep 17 00:00:00 2001 From: Odoo Translation Bot Date: Sun, 5 May 2019 01:35:12 +0200 Subject: [I18N] Update translation terms from Transifex --- addons/mail/i18n/cs.po | 213 +++++++++++++++++++++++----------------------- addons/mail/i18n/et.po | 5 +- addons/mail/i18n/hr.po | 33 +++---- addons/mail/i18n/ko.po | 2 + addons/mail/i18n/zh_CN.po | 2 +- 5 files changed, 131 insertions(+), 124 deletions(-) (limited to 'addons/mail') diff --git a/addons/mail/i18n/cs.po b/addons/mail/i18n/cs.po index 1c57fdc3ce3..a60bb03ed09 100644 --- a/addons/mail/i18n/cs.po +++ b/addons/mail/i18n/cs.po @@ -81,20 +81,20 @@ msgstr "%s vytvořeno" #: code:addons/mail/static/src/js/models/threads/thread_typing_mixin/thread_typing_mixin.js:131 #, python-format msgid "%s is typing..." -msgstr "" +msgstr "%s píše..." #. module: mail #. openerp-web #: code:addons/mail/static/src/js/models/threads/thread_typing_mixin/thread_typing_mixin.js:137 #, python-format msgid "%s, %s and more are typing..." -msgstr "" +msgstr "%s, %s a další píší..." #. module: mail #: code:addons/mail/models/mail_activity.py:341 #, python-format msgid "%s: %s assigned to you" -msgstr "" +msgstr "%s: %s přiřazeno k vám" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.mail_notification_paynow @@ -281,7 +281,7 @@ msgstr "" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.res_config_settings_view_form msgid "Activities" -msgstr "" +msgstr "Aktivity" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.email_template_form @@ -509,7 +509,7 @@ msgstr "Přidat" #: code:addons/mail/static/src/xml/chatter.xml:30 #, python-format msgid "Add Attachments" -msgstr "" +msgstr "Přidat přílohy" #. module: mail #. openerp-web @@ -538,8 +538,7 @@ msgstr "Přidat následovníky" #: code:addons/mail/models/ir_actions.py:63 #, python-format msgid "Add Followers can only be done on a mail thread model" -msgstr "" -"Přidat Následovníky lze provést pouze na podprocesu e-mailového modelu " +msgstr "Přidat sledující lze provést pouze na podprocesu e-mailového modelu " #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_compose_message__add_sign @@ -1115,7 +1114,7 @@ msgstr "Změněno" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__field msgid "Changed Field" -msgstr "" +msgstr "Změněné pole" #. module: mail #. openerp-web @@ -1233,7 +1232,7 @@ msgstr "Uzavřeno" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.email_template_form msgid "Comma-separated carbon copy recipients addresses" -msgstr "" +msgstr "Adresy příjemců v kopii oddělené čárkami" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.email_template_form @@ -1271,7 +1270,7 @@ msgstr "Komentář" #. module: mail #: model:ir.model,name:mail.model_res_company msgid "Companies" -msgstr "Firmy v systému" +msgstr "Společnosti" #. module: mail #. openerp-web @@ -1342,7 +1341,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_channel_partner__is_minimized msgid "Conversation is minimized" -msgstr "" +msgstr "Konverzace je zmenšena" #. module: mail #. openerp-web @@ -1373,7 +1372,7 @@ msgstr "Vytvořtit další aktivitu" #: code:addons/mail/models/mail_thread.py:400 #, python-format msgid "Create a new %(document)s" -msgstr "" +msgstr "Vytvořit nový %(document)s" #. module: mail #: code:addons/mail/models/mail_thread.py:392 @@ -1498,7 +1497,7 @@ msgstr "Uzávěrka" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.message_user_assigned msgid "Dear" -msgstr "" +msgstr "Vážený" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity__activity_decoration @@ -1557,7 +1556,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity_type__delay_unit msgid "Delay units" -msgstr "" +msgstr "Jednotky prodlení" #. module: mail #. openerp-web @@ -1614,7 +1613,7 @@ msgstr "Diagram" #: code:addons/mail/static/src/xml/discuss.xml:57 #, python-format msgid "Direct Messages" -msgstr "" +msgstr "Přímé zprávy" #. module: mail #. openerp-web @@ -1642,14 +1641,14 @@ msgstr "Zrušit selhání doručení pošty" #: code:addons/mail/static/src/xml/discuss.xml:187 #, python-format msgid "Discard selected messages" -msgstr "" +msgstr "Zrušit vybrané zprávy" #. module: mail #. openerp-web #: code:addons/mail/static/src/xml/thread.xml:416 #, python-format msgid "Discard |" -msgstr "" +msgstr "Zrušit |" #. module: mail #: model:ir.actions.client,name:mail.action_discuss @@ -1661,7 +1660,7 @@ msgstr "Diskuse" #. module: mail #: model:ir.model,name:mail.model_mail_channel msgid "Discussion Channel" -msgstr "" +msgstr "Diskusní kanál" #. module: mail #: model:mail.message.subtype,name:mail.mt_comment @@ -1671,7 +1670,7 @@ msgstr "Diskuze" #. module: mail #: model:ir.model,name:mail.model_mail_resend_cancel msgid "Dismiss notification for resend by model" -msgstr "" +msgstr "Zrušit oznámení pro opětovné odeslání podle modelu" #. module: mail #: model:ir.model.fields,field_description:mail.field_email_template_preview__display_name @@ -1723,8 +1722,8 @@ msgid "" "Do not keep a copy of the email in the document communication history (mass " "mailing only)" msgstr "" -"Neuchovávejte kopii e-mailu v historii komunikace dokumentů (pouze v " -"hromadné korespondenci)" +"Neuchovávat kopii e-mailu v historii komunikace dokumentů (pouze v hromadné " +"korespondenci)" #. module: mail #. openerp-web @@ -1789,7 +1788,7 @@ msgstr "Stáhnout" #: code:addons/mail/static/src/xml/followers.xml:11 #, python-format msgid "Dropdown menu - Followers" -msgstr "" +msgstr "Rozbalovací nabídka - Sledující" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity__date_deadline @@ -1854,7 +1853,7 @@ msgstr "Upravit odebírání" #: selection:mail.compose.message,message_type:0 #: selection:mail.message,message_type:0 msgid "Email" -msgstr "Email" +msgstr "E-mail" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_blacklist__email @@ -1879,12 +1878,12 @@ msgstr "" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.mail_blacklist_view_tree msgid "Email Blacklist" -msgstr "Email Blacklist" +msgstr "Černá listina e-mailu" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.email_template_form msgid "Email Configuration" -msgstr "Nastavení emailu" +msgstr "Nastavení e-mailu" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.email_template_preview_form @@ -1919,12 +1918,12 @@ msgstr "Šablony e-mailů" #. module: mail #: model:ir.model,name:mail.model_mail_thread msgid "Email Thread" -msgstr "Emailové vlákno" +msgstr "E-mailové vlákno" #. module: mail #: sql_constraint:mail.blacklist:0 msgid "Email address already exists!" -msgstr "Emailová adresa již existuje!" +msgstr "E-mailová adresa již existuje!" #. module: mail #: model:ir.model.fields,help:mail.field_res_users__alias_id @@ -1968,7 +1967,7 @@ msgstr "" #. module: mail #: model:ir.model,name:mail.model_mail_compose_message msgid "Email composition wizard" -msgstr "Průvodce sestavením emailu" +msgstr "Průvodce sestavením e-mailu" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.view_mail_form @@ -2021,6 +2020,8 @@ msgid "" "Error without exception. Probably due do concurrent access update of " "notification records. Please see with an administrator." msgstr "" +"Chyba bez výjimky. Pravděpodobně kvůli současné aktualizaci přístupu k " +"záznamům oznámení. Informace naleznete u správce." #. module: mail #: code:addons/mail/models/mail_mail.py:329 @@ -2125,7 +2126,7 @@ msgstr "" #: model:ir.model.fields,field_description:mail.field_mail_mail__starred_partner_ids #: model:ir.model.fields,field_description:mail.field_mail_message__starred_partner_ids msgid "Favorited By" -msgstr "" +msgstr "Oblíbené od" #. module: mail #. openerp-web @@ -2213,7 +2214,7 @@ msgstr "Sledující" #: model:ir.model.fields,field_description:mail.field_res_partner__message_channel_ids #: model:ir.model.fields,field_description:mail.field_res_users__message_channel_ids msgid "Followers (Channels)" -msgstr "" +msgstr "Sledující (Kanály)" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_blacklist__message_partner_ids @@ -2363,7 +2364,7 @@ msgstr "" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.view_message_search msgid "Has Mentions" -msgstr "" +msgstr "Má zmínky" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.view_message_search @@ -2602,7 +2603,7 @@ msgstr "Informace" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity_type__initial_res_model_id msgid "Initial model" -msgstr "" +msgstr "Počáteční model" #. module: mail #: model:ir.model.fields,help:mail.field_mail_compose_message__parent_id @@ -2691,7 +2692,7 @@ msgstr "Pozvat" #: code:addons/mail/static/src/js/followers.js:171 #, python-format msgid "Invite Follower" -msgstr "" +msgstr "Pozvat sledujícího" #. module: mail #. openerp-web @@ -2706,7 +2707,7 @@ msgstr "Pozvat lidi" #: code:addons/mail/static/src/js/discuss.js:1188 #, python-format msgid "Invite people to #%s" -msgstr "" +msgstr "Pozvat lidi do #%s" #. module: mail #: model:ir.model,name:mail.model_mail_wizard_invite @@ -2726,7 +2727,7 @@ msgstr "je povoleno" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.mail_moderation_view_search msgid "Is Banned" -msgstr "" +msgstr "Je zakázán" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_blacklist__message_is_follower @@ -2765,7 +2766,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_res_users__is_moderator msgid "Is moderator" -msgstr "" +msgstr "Je moderátor" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_channel_partner__is_pinned @@ -2780,7 +2781,7 @@ msgstr "Připojit" #. module: mail #: model:ir.actions.act_window,name:mail.mail_channel_action_view msgid "Join a group" -msgstr "Připojení ke skupinám" +msgstr "Připojení ke skupině" #. module: mail #: selection:ir.actions.act_window.view,view_mode:0 @@ -2828,7 +2829,7 @@ msgstr "Naposled změněno" #: model:ir.model.fields,field_description:mail.field_mail_channel__channel_last_seen_partner_ids #: model:ir.model.fields,field_description:mail.field_mail_channel_partner__seen_message_id msgid "Last Seen" -msgstr "" +msgstr "Naposledy viděno" #. module: mail #: model:ir.model.fields,field_description:mail.field_email_template_preview__write_uid @@ -2932,7 +2933,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_followers__channel_id msgid "Listener" -msgstr "" +msgstr "Posluchač" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_channel__channel_partner_ids @@ -2947,7 +2948,7 @@ msgstr "" #. module: mail #: selection:mail.channel,channel_type:0 msgid "Livechat Conversation" -msgstr "" +msgstr "Konverzace v živém chatu" #. module: mail #. openerp-web @@ -3030,12 +3031,12 @@ msgstr "" #: model:ir.model.fields,field_description:mail.field_mail_mail__mail_activity_type_id #: model:ir.model.fields,field_description:mail.field_mail_message__mail_activity_type_id msgid "Mail Activity Type" -msgstr "" +msgstr "Typ aktivity e-mailu" #. module: mail #: model:ir.model,name:mail.model_mail_blacklist msgid "Mail Blacklist" -msgstr "" +msgstr "Černá listina e-mailu" #. module: mail #: model:ir.model,name:mail.model_mail_blacklist_mixin @@ -3064,12 +3065,12 @@ msgstr "Nepodařilo se doručit poštu" #: model:ir.model.fields,field_description:mail.field_ir_model__is_mail_thread #: model_terms:ir.ui.view,arch_db:mail.model_search_view msgid "Mail Thread" -msgstr "" +msgstr "Vlákno e-mailu" #. module: mail #: model:ir.model,name:mail.model_mail_tracking_value msgid "Mail Tracking Value" -msgstr "" +msgstr "Sledovaná hodnota e-mailu" #. module: mail #: model:ir.model.fields,help:mail.field_mail_mail__notification @@ -3247,7 +3248,7 @@ msgstr "" #. module: mail #: model:ir.model,name:mail.model_mail_notification msgid "Message Notifications" -msgstr "" +msgstr "Oznámení zpráv" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_compose_message__record_name @@ -3282,7 +3283,7 @@ msgstr "Odkazy zpráv, jako identifikátory předchozích zpráv" #: code:addons/mail/static/src/xml/discuss.xml:165 #, python-format msgid "Message sent in \"" -msgstr "" +msgstr "Zpráva odeslána v \"" #. module: mail #: model:ir.model.fields,help:mail.field_mail_message_subtype__name @@ -3301,7 +3302,7 @@ msgstr "" #. module: mail #: model:ir.model,name:mail.model_mail_message_subtype msgid "Message subtypes" -msgstr "Poddruhy zpráv" +msgstr "Podřazené typy zpráv" #. module: mail #: model:ir.model.fields,help:mail.field_mail_followers__subtype_ids @@ -3418,7 +3419,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_channel__moderation msgid "Moderate this channel" -msgstr "" +msgstr "Moderovat tento kanál" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_compose_message__moderator_id @@ -3435,7 +3436,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_res_users__moderation_channel_ids msgid "Moderated channels" -msgstr "" +msgstr "Moderované kanály" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_channel__moderation_count @@ -3451,21 +3452,21 @@ msgstr "" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.mail_moderation_view_tree msgid "Moderation Lists" -msgstr "" +msgstr "Seznam moderování" #. module: mail #. openerp-web #: code:addons/mail/static/src/xml/discuss.xml:39 #, python-format msgid "Moderation Queue" -msgstr "" +msgstr "Fronta moderování" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_compose_message__moderation_status #: model:ir.model.fields,field_description:mail.field_mail_mail__moderation_status #: model:ir.model.fields,field_description:mail.field_mail_message__moderation_status msgid "Moderation Status" -msgstr "" +msgstr "Stav moderování" #. module: mail #: model:ir.model.fields,field_description:mail.field_res_users__moderation_counter @@ -3548,7 +3549,7 @@ msgstr "Vyžaduje činnost" #: model:ir.model.fields,field_description:mail.field_mail_mail__need_moderation #: model:ir.model.fields,field_description:mail.field_mail_message__need_moderation msgid "Need moderation" -msgstr "" +msgstr "Vyžaduje moderování" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_notification__res_partner_id @@ -3560,7 +3561,7 @@ msgstr "" #: code:addons/mail/static/src/xml/discuss.xml:182 #, python-format msgid "New Channel" -msgstr "" +msgstr "Nový kanál" #. module: mail #. openerp-web @@ -3572,7 +3573,7 @@ msgstr "Nová zpráva" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__new_value_char msgid "New Value Char" -msgstr "" +msgstr "Nová znaková hodnota" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__new_value_datetime @@ -3587,7 +3588,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__new_value_integer msgid "New Value Integer" -msgstr "" +msgstr "Nová číselná hodnota" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__new_value_monetary @@ -3597,7 +3598,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__new_value_text msgid "New Value Text" -msgstr "" +msgstr "Nová textová hodnota" #. module: mail #. openerp-web @@ -3628,7 +3629,7 @@ msgstr "" #: code:addons/mail/static/src/js/discuss.js:104 #, python-format msgid "New people" -msgstr "" +msgstr "Noví lidé" #. module: mail #: model:ir.model.fields,help:mail.field_mail_channel__moderation_guidelines @@ -3654,7 +3655,7 @@ msgstr "Další aktivity" #: model:ir.model.fields,field_description:mail.field_res_partner__activity_date_deadline #: model:ir.model.fields,field_description:mail.field_res_users__activity_date_deadline msgid "Next Activity Deadline" -msgstr "" +msgstr "Termín další aktivity" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity_mixin__activity_summary @@ -3673,7 +3674,7 @@ msgstr "Další typ aktivity" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity__has_recommended_activities msgid "Next activities available" -msgstr "" +msgstr "K dispozici další aktivity" #. module: mail #: code:addons/mail/models/mail_notification.py:50 @@ -3701,14 +3702,14 @@ msgstr "Zatím žádná konverzace..." #: code:addons/mail/static/src/xml/activity_view.xml:21 #, python-format msgid "No data to display" -msgstr "" +msgstr "Žádná data k zobrazení" #. module: mail #. openerp-web #: code:addons/mail/static/src/js/followers.js:186 #, python-format msgid "No follower" -msgstr "" +msgstr "Žádný sledující" #. module: mail #. openerp-web @@ -3736,7 +3737,7 @@ msgstr "" #: code:addons/mail/static/src/xml/thread.xml:134 #, python-format msgid "No starred message" -msgstr "" +msgstr "Žádná zpráva s hvězdičkou" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_compose_message__no_auto_thread @@ -3767,7 +3768,7 @@ msgstr "Upozornění" #. module: mail #: model:ir.model.fields,field_description:mail.field_res_users__notification_type msgid "Notification Management" -msgstr "" +msgstr "Správa upozornění" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_channel__moderation_notify_msg @@ -3785,12 +3786,12 @@ msgstr "Notifikace" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_compose_message__notify msgid "Notify followers" -msgstr "" +msgstr "Upozornit sledující" #. module: mail #: model:ir.model.fields,help:mail.field_mail_compose_message__notify msgid "Notify followers of the document (mass post only)" -msgstr "" +msgstr "Upozornit sledující dokumentu (pouze hromadný příspěvek)" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_blacklist__message_needaction_counter @@ -3857,17 +3858,17 @@ msgstr "Odoo" #: code:addons/mail/static/src/xml/discuss.xml:158 #, python-format msgid "Offline" -msgstr "Offline" +msgstr "Nepřipojeno" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__old_value_char msgid "Old Value Char" -msgstr "" +msgstr "Stará znaková hodnota" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__old_value_datetime msgid "Old Value DateTime" -msgstr "" +msgstr "Stará hodnota data a času" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__old_value_float @@ -3902,6 +3903,8 @@ msgid "" "Once a message has been starred, you can come back and review it at any time" " here." msgstr "" +"Jakmile byla zpráva označena hvězdičkou, můžete se k ní kdykoli vrátit a " +"zkontrolovat ji." #. module: mail #. openerp-web @@ -3939,7 +3942,7 @@ msgstr "" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.view_mail_alias_form msgid "Open Document" -msgstr "" +msgstr "Otevřít dokument" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.view_mail_alias_form @@ -4117,7 +4120,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_resend_partner__partner_id msgid "Partner" -msgstr "Kontakt" +msgstr "Partner" #. module: mail #: code:addons/mail/models/res_partner.py:29 @@ -4146,7 +4149,7 @@ msgstr "" #: selection:mail.compose.message,moderation_status:0 #: selection:mail.message,moderation_status:0 msgid "Pending Moderation" -msgstr "" +msgstr "Čekání na moderování" #. module: mail #. openerp-web @@ -4293,7 +4296,7 @@ msgstr "" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.email_template_form msgid "Preferred reply address" -msgstr "" +msgstr "Preferovaná adresa odpovědi" #. module: mail #: model:ir.model.fields,help:mail.field_email_template_preview__reply_to @@ -4359,7 +4362,7 @@ msgstr "" #. module: mail #: model:ir.model,name:mail.model_publisher_warranty_contract msgid "Publisher Warranty Contract" -msgstr "" +msgstr "Smlouva o záruce vydavatele" #. module: mail #: model:ir.actions.server,name:mail.ir_cron_module_update_notification_ir_actions_server @@ -4417,7 +4420,7 @@ msgstr "Příjemci" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity__recommended_activity_type_id msgid "Recommended Activity Type" -msgstr "" +msgstr "Doporučený typ aktivity" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity_type__next_type_ids @@ -4460,7 +4463,7 @@ msgstr "" #: code:addons/mail/static/src/xml/thread.xml:414 #, python-format msgid "Reject |" -msgstr "" +msgstr "Odmítnout |" #. module: mail #: selection:mail.compose.message,moderation_status:0 @@ -4487,7 +4490,7 @@ msgstr "Související ID dokumentu" #: model:ir.model.fields,field_description:mail.field_mail_template__model #: model:ir.model.fields,field_description:mail.field_mail_wizard_invite__res_model msgid "Related Document Model" -msgstr "Související dokumentový model" +msgstr "Související model dokumentu" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_followers__res_model @@ -4668,13 +4671,13 @@ msgstr "Naplánovat" #: code:addons/mail/static/src/xml/chatter.xml:93 #, python-format msgid "Schedule activity" -msgstr "" +msgstr "Plánovat aktivitu" #. module: mail #: code:addons/mail/models/mail_activity.py:395 #, python-format msgid "Schedule an Activity" -msgstr "" +msgstr "Plánovat aktivitu" #. module: mail #. openerp-web @@ -4727,7 +4730,7 @@ msgstr "Vybrat vše" #: code:addons/mail/static/src/xml/discuss.xml:183 #, python-format msgid "Select all messages to moderate" -msgstr "" +msgstr "Vybrat všechny zprávy k moderování" #. module: mail #: model:ir.model.fields,help:mail.field_email_template_preview__model_object_field @@ -4764,7 +4767,7 @@ msgstr "Odeslat" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_resend_partner__resend msgid "Send Again" -msgstr "" +msgstr "Odeslat znovu" #. module: mail #: model:ir.actions.act_window,name:mail.action_partner_mass_mail @@ -4895,7 +4898,7 @@ msgstr "" #: code:addons/mail/models/mail_channel.py:914 #, python-format msgid "Show an helper message" -msgstr "" +msgstr "Zobrazit pomocnou zprávu" #. module: mail #: model:ir.model.fields,field_description:mail.field_email_template_preview__ref_ir_act_window @@ -4945,7 +4948,7 @@ msgstr "" #. module: mail #: selection:ir.actions.server,activity_user_type:0 msgid "Specific User" -msgstr "" +msgstr "Konkrétní uživatel" #. module: mail #: model:ir.model.fields,help:mail.field_mail_activity_type__res_model_id @@ -4976,7 +4979,7 @@ msgstr "Označeno hvězdičkou" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity__state msgid "State" -msgstr "Stát" +msgstr "Stav" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_mail__state @@ -5077,7 +5080,7 @@ msgstr "Upozornění systému" #. module: mail #: model:ir.model.fields,help:mail.field_mail_activity__has_recommended_activities msgid "Technical field for UX purpose" -msgstr "" +msgstr "Technické pole pro účely UX" #. module: mail #: model:ir.model.fields,help:mail.field_mail_activity_type__res_model_change @@ -5129,12 +5132,12 @@ msgstr "Hodnota \"datum splatnosti\" nesmí být záporná." #. module: mail #: sql_constraint:mail.moderation:0 msgid "The email address must be unique per channel !" -msgstr "" +msgstr "E-mailová adresa musí být pro každý kanál jedinečná" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.mail_bounce_catchall msgid "The email sent to" -msgstr "" +msgstr "E-mail odeslaný na" #. module: mail #: model:ir.model.fields,help:mail.field_mail_shortcode__substitution @@ -5197,7 +5200,7 @@ msgstr "" #. module: mail #: model:ir.model.fields,help:mail.field_mail_shortcode__source msgid "The shortcut which must be replaced in the Chat Messages" -msgstr "" +msgstr "Zástupce, který musí být nahrazen v Chatových zprávách" #. module: mail #: model:ir.model.fields,help:mail.field_email_template_preview__model_id @@ -5208,7 +5211,7 @@ msgstr "Typ dokumentu s touto šablonou lze použít s" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.message_origin_link msgid "This" -msgstr "" +msgstr "Toto" #. module: mail #. openerp-web @@ -5324,13 +5327,13 @@ msgstr "Sledování" #: model_terms:ir.ui.view,arch_db:mail.view_mail_tracking_value_form #: model_terms:ir.ui.view,arch_db:mail.view_mail_tracking_value_tree msgid "Tracking Value" -msgstr "" +msgstr "Sledovaná hodnota" #. module: mail #: model:ir.actions.act_window,name:mail.action_view_mail_tracking_value #: model:ir.ui.menu,name:mail.menu_mail_tracking_value msgid "Tracking Values" -msgstr "" +msgstr "Sledování hodnot" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__track_sequence @@ -5370,7 +5373,7 @@ msgstr "Typ" #. module: mail #: model:ir.model.fields,help:mail.field_mail_activity_type__delay_from msgid "Type of delay" -msgstr "" +msgstr "Typ prodlevy" #. module: mail #: model:ir.model.fields,help:mail.field_ir_actions_server__state @@ -5495,7 +5498,7 @@ msgstr "Odznačit vše" #: code:addons/mail/static/src/xml/discuss.xml:184 #, python-format msgid "Unselect all messages to moderate" -msgstr "" +msgstr "Zrušit zaškrtnutí všech zpráv, které chcete změnit" #. module: mail #. openerp-web @@ -5597,7 +5600,7 @@ msgstr "Uživatel" #. module: mail #: model:ir.model.fields,field_description:mail.field_ir_actions_server__activity_user_field_name msgid "User field name" -msgstr "" +msgstr "Název uživatelského pole" #. module: mail #. openerp-web @@ -5647,7 +5650,7 @@ msgstr "Zobrazení" #: code:addons/mail/models/mail_thread.py:745 #, python-format msgid "View %s" -msgstr "" +msgstr "Zobrazit %s" #. module: mail #: model:ir.model.fields,field_description:mail.field_ir_actions_act_window_view__view_mode @@ -5667,7 +5670,7 @@ msgstr "" #: code:addons/mail/static/src/xml/thread.xml:58 #, python-format msgid "Viewer" -msgstr "" +msgstr "Prohlížeč" #. module: mail #. openerp-web @@ -5747,7 +5750,7 @@ msgstr "Kdo může sledovat aktivity skupiny?" #: code:addons/mail/static/src/xml/activity.xml:96 #, python-format msgid "Write Feedback" -msgstr "" +msgstr "Napsat zpětnou vazbu" #. module: mail #. openerp-web @@ -5873,14 +5876,14 @@ msgstr "" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.mail_channel_notify_moderation msgid "You have messages to moderate, please go for the proceedings." -msgstr "" +msgstr "Máte zprávy k moderování, prosím, jděte je zpracovat." #. module: mail #. openerp-web #: code:addons/mail/static/src/xml/thread.xml:138 #, python-format msgid "You have no message to moderate" -msgstr "" +msgstr "Nemáte žádnou zprávu k moderování" #. module: mail #: model:ir.model.fields,help:mail.field_email_template_preview__attachment_ids @@ -5924,7 +5927,7 @@ msgstr "" #: code:addons/mail/static/src/js/thread_field.js:91 #, python-format msgid "Your message has not been sent." -msgstr "" +msgstr "Vaše zpráva nebyla odeslána." #. module: mail #. openerp-web @@ -5944,14 +5947,14 @@ msgstr "" #: code:addons/mail/models/ir_actions.py:57 #, python-format msgid "Your template should define email_from" -msgstr "" +msgstr "Vaše šablona by měla definovat email_from" #. module: mail #. openerp-web #: code:addons/mail/static/src/xml/thread.xml:68 #, python-format msgid "Zoom In" -msgstr "" +msgstr "Přiblížit" #. module: mail #. openerp-web @@ -6076,13 +6079,13 @@ msgstr "" #: code:addons/mail/models/mail_alias.py:272 #, python-format msgid "incorrectly configured alias" -msgstr "" +msgstr "Nesprávně konfigurovaný zástupce" #. module: mail #: code:addons/mail/models/mail_alias.py:268 #, python-format msgid "incorrectly configured alias (unknown reference record)" -msgstr "" +msgstr "nesprávně nakonfigurovaný alias (neznámý referenční záznam)" #. module: mail #: code:addons/mail/models/mail_thread.py:1051 @@ -6209,7 +6212,7 @@ msgstr "" #: code:addons/mail/models/mail_alias.py:277 #, python-format msgid "restricted to followers" -msgstr "" +msgstr "omezeno pro sledující" #. module: mail #: code:addons/mail/models/mail_alias.py:281 diff --git a/addons/mail/i18n/et.po b/addons/mail/i18n/et.po index 380db0d895b..eaaf4ae4534 100644 --- a/addons/mail/i18n/et.po +++ b/addons/mail/i18n/et.po @@ -12,6 +12,7 @@ # Helen Sulaoja , 2018 # Rivo Zängov , 2018 # Eneli Õigus , 2018 +# Maidu Targama , 2019 # msgid "" msgstr "" @@ -19,7 +20,7 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-29 10:09+0000\n" "PO-Revision-Date: 2018-08-24 09:20+0000\n" -"Last-Translator: Eneli Õigus , 2018\n" +"Last-Translator: Maidu Targama , 2019\n" "Language-Team: Estonian (https://www.transifex.com/odoo/teams/41243/et/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -923,7 +924,7 @@ msgstr "" #: code:addons/mail/static/src/xml/followers.xml:44 #, python-format msgid "Avatar" -msgstr "" +msgstr "Avatar" #. module: mail #. openerp-web diff --git a/addons/mail/i18n/hr.po b/addons/mail/i18n/hr.po index b02c37e205b..fabdcd8f221 100644 --- a/addons/mail/i18n/hr.po +++ b/addons/mail/i18n/hr.po @@ -16,6 +16,7 @@ # Karolina Tonković , 2019 # Tina Milas, 2019 # Bole , 2019 +# Ana-Maria Olujić , 2019 # msgid "" msgstr "" @@ -23,7 +24,7 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-03-29 10:09+0000\n" "PO-Revision-Date: 2018-08-24 09:20+0000\n" -"Last-Translator: Bole , 2019\n" +"Last-Translator: Ana-Maria Olujić , 2019\n" "Language-Team: Croatian (https://www.transifex.com/odoo/teams/41243/hr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -571,7 +572,7 @@ msgstr "" #: model:ir.model.fields,field_description:mail.field_mail_mail__add_sign #: model:ir.model.fields,field_description:mail.field_mail_message__add_sign msgid "Add Sign" -msgstr "" +msgstr "Dodaj potpis" #. module: mail #: model:ir.model.fields,field_description:mail.field_email_template_preview__user_signature @@ -835,7 +836,7 @@ msgstr "Prilog" #: model:ir.model.fields,field_description:mail.field_res_partner__message_attachment_count #: model:ir.model.fields,field_description:mail.field_res_users__message_attachment_count msgid "Attachment Count" -msgstr "" +msgstr "Broj priloga" #. module: mail #. openerp-web @@ -1684,7 +1685,7 @@ msgstr "Rasprava" #. module: mail #: model:ir.model,name:mail.model_mail_channel msgid "Discussion Channel" -msgstr "" +msgstr "Kanal rasprave" #. module: mail #: model:mail.message.subtype,name:mail.mt_comment @@ -2400,7 +2401,7 @@ msgstr "Ima prilog" #: model:ir.model.fields,help:mail.field_mail_mail__has_error #: model:ir.model.fields,help:mail.field_mail_message__has_error msgid "Has error" -msgstr "" +msgstr "Ima greške" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_mail__headers @@ -2646,7 +2647,7 @@ msgstr "Inicijalna nit poruke" #: model:ir.ui.menu,name:mail.mail_channel_integrations_menu #: model_terms:ir.ui.view,arch_db:mail.mail_channel_view_form msgid "Integrations" -msgstr "" +msgstr "Intergracije" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_message_subtype__internal @@ -2922,14 +2923,14 @@ msgstr "Kasni" #: model_terms:ir.ui.view,arch_db:mail.mail_activity_view_search #: model_terms:ir.ui.view,arch_db:mail.res_partner_view_search_inherit_mail msgid "Late Activities" -msgstr "" +msgstr "Posljednje aktivnosti" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_compose_message__layout #: model:ir.model.fields,field_description:mail.field_mail_mail__layout #: model:ir.model.fields,field_description:mail.field_mail_message__layout msgid "Layout" -msgstr "" +msgstr "Izgled" #. module: mail #: model_terms:ir.ui.view,arch_db:mail.mail_channel_view_kanban @@ -3142,7 +3143,7 @@ msgstr "" #: model:ir.model.fields,field_description:mail.field_res_partner__message_main_attachment_id #: model:ir.model.fields,field_description:mail.field_res_users__message_main_attachment_id msgid "Main Attachment" -msgstr "" +msgstr "Glavni prilog" #. module: mail #. openerp-web @@ -3270,7 +3271,7 @@ msgstr "Poruka" #: model:ir.model.fields,field_description:mail.field_res_partner__message_has_error #: model:ir.model.fields,field_description:mail.field_res_users__message_has_error msgid "Message Delivery error" -msgstr "" +msgstr "Greška pri isporuci poruke" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_tracking_value__mail_message_id @@ -3691,7 +3692,7 @@ msgstr "Sljedeće aktivnosti" #: model:ir.model.fields,field_description:mail.field_res_partner__activity_date_deadline #: model:ir.model.fields,field_description:mail.field_res_users__activity_date_deadline msgid "Next Activity Deadline" -msgstr "" +msgstr "Krajnji rok slijedeće aktivnosti" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity_mixin__activity_summary @@ -3705,7 +3706,7 @@ msgstr "Sažetak sljedeće aktivnosti" #: model:ir.model.fields,field_description:mail.field_res_partner__activity_type_id #: model:ir.model.fields,field_description:mail.field_res_users__activity_type_id msgid "Next Activity Type" -msgstr "" +msgstr "Tip sljedeće aktivnosti" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity__has_recommended_activities @@ -3854,7 +3855,7 @@ msgstr "" #: model:ir.model.fields,field_description:mail.field_res_partner__message_has_error_counter #: model:ir.model.fields,field_description:mail.field_res_users__message_has_error_counter msgid "Number of error" -msgstr "" +msgstr "Broj grešaka" #. module: mail #: model:ir.model.fields,help:mail.field_mail_blacklist__message_needaction_counter @@ -3872,7 +3873,7 @@ msgstr "Broj poruka koje zahtijevaju aktivnost" #: model:ir.model.fields,help:mail.field_res_partner__message_has_error_counter #: model:ir.model.fields,help:mail.field_res_users__message_has_error_counter msgid "Number of messages with delivery error" -msgstr "" +msgstr "Broj poruka sa greškama pri isporuci" #. module: mail #: model:ir.model.fields,help:mail.field_mail_blacklist__message_unread_counter @@ -4377,7 +4378,7 @@ msgstr "Pregled" #: code:addons/mail/static/src/xml/thread.xml:92 #, python-format msgid "Previous" -msgstr "" +msgstr "Prethodni" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_activity__previous_activity_type_id @@ -4568,7 +4569,7 @@ msgstr "Relacijsko polje" #. module: mail #: selection:mail.activity.type,category:0 msgid "Reminder" -msgstr "" +msgstr "Podsjetnik" #. module: mail #. openerp-web diff --git a/addons/mail/i18n/ko.po b/addons/mail/i18n/ko.po index eea498ff795..867bca2c71f 100644 --- a/addons/mail/i18n/ko.po +++ b/addons/mail/i18n/ko.po @@ -4089,6 +4089,8 @@ msgid "" " necessarily the model given by alias_model_id (example: project " "(parent_model) and task (model))" msgstr "" +"별칭이 있는 상위 모델입니다. 별칭 참조를 포함하는 모델은 반드시 alias_model_id(예: 프로젝트(parent_model) 및 " +"태스크(model)에서 제공하는 모델일 필요는 없습니다.)" #. module: mail #: model:ir.model.fields,help:mail.field_mail_message_subtype__parent_id diff --git a/addons/mail/i18n/zh_CN.po b/addons/mail/i18n/zh_CN.po index 98bfc29c735..1a7acba0248 100644 --- a/addons/mail/i18n/zh_CN.po +++ b/addons/mail/i18n/zh_CN.po @@ -2781,7 +2781,7 @@ msgstr "已订阅" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_channel__is_chat msgid "Is a chat" -msgstr "是聊天" +msgstr "" #. module: mail #: model:ir.model.fields,field_description:mail.field_mail_channel__is_member -- cgit v1.2.3 From 04a535a8d16bd72087e0323f317a1c429febf2bd Mon Sep 17 00:00:00 2001 From: Grzegorz Krukar Date: Tue, 30 Apr 2019 16:34:13 +0000 Subject: [FIX] mail: correctly display follow button in chatter The follower button had a useless fixed width which made it overlap with other buttons. Fixes odoo/odoo#29387 Closes odoo/odoo#33063 Signed-off-by: Martin Geubelle (mge) --- addons/mail/static/src/scss/followers.scss | 1 - 1 file changed, 1 deletion(-) (limited to 'addons/mail') diff --git a/addons/mail/static/src/scss/followers.scss b/addons/mail/static/src/scss/followers.scss index 934df9b7acc..6ac15cb7c9d 100644 --- a/addons/mail/static/src/scss/followers.scss +++ b/addons/mail/static/src/scss/followers.scss @@ -31,7 +31,6 @@ } .o_followers_follow_button { - width: 85px; padding-right: 0; color: $body-color; font-weight: bold; -- cgit v1.2.3 From f79582c1f819fd3751916ae99ee61586038c59a5 Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Mon, 6 May 2019 09:49:05 +0000 Subject: [FIX] mail: prevent record discard on new attachment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Open a record having a chatter, edit a field, add an attachment, leave the page. The discard warning popup in not shown. When an attachment is added, it reloads the record to fetch the new `attachment_message_count`. Reloading the view was discarding the changes because the `keepChanges` option was not set and defaults to `false`. The changes were discarded thus the internal `_isDirty` flag evaluated to `false` thus the popup was not shown as nothing would have been saved. The option was set in another `attachment_message_count` reload already, in `chatter.js@_openComposer`. opw-1974147 closes odoo/odoo#33180 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/js/chatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/mail') diff --git a/addons/mail/static/src/js/chatter.js b/addons/mail/static/src/js/chatter.js index 5f9b11198e3..dc23354fe7b 100644 --- a/addons/mail/static/src/js/chatter.js +++ b/addons/mail/static/src/js/chatter.js @@ -365,7 +365,7 @@ var Chatter = Widget.extend({ this._fetchAttachments().then(this._openAttachmentBox.bind(this)); } if (this.fields.thread) { - this.trigger_up('reload', { fieldNames: ['message_attachment_count'] }); + this.trigger_up('reload', { fieldNames: ['message_attachment_count'], keepChanges: true }); } }, /** -- cgit v1.2.3 From 9cb9e227c9a52b675e69e29540b59bf45523b54c Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Tue, 7 May 2019 09:07:20 +0000 Subject: [FIX] mail: ir_action have a stored field containing the model name Make a CRM lead, assign it to a portal user Have an automated action which add followers on create and write From the portal, edit the lead Before this commit, it crashed because a portal user doesn't have access to ir.model (4a18d5744e0a36cb2f120bfad00b52ad22f4d01d) After this commit, the flow works, because we use the stored model name on the action instead of trying to read ir.model OPW 1985570 closes odoo/odoo#33211 Signed-off-by: Christophe Simonis --- addons/mail/models/ir_actions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/mail') diff --git a/addons/mail/models/ir_actions.py b/addons/mail/models/ir_actions.py index 203304c7fb7..56f60069024 100644 --- a/addons/mail/models/ir_actions.py +++ b/addons/mail/models/ir_actions.py @@ -70,7 +70,7 @@ class ServerActions(models.Model): @api.model def run_action_followers_multi(self, action, eval_context=None): - Model = self.env[action.model_id.model] + Model = self.env[action.model_name] if self.partner_ids or self.channel_ids and hasattr(Model, 'message_subscribe'): records = Model.browse(self._context.get('active_ids', self._context.get('active_id'))) records.message_subscribe(self.partner_ids.ids, self.channel_ids.ids) @@ -83,7 +83,7 @@ class ServerActions(models.Model): When need to know it to skip these steps. Except if the computed field is supposed to trigger the action """ - records = self.env[action.model_id.model].browse( + records = self.env[action.model_name].browse( self._context.get('active_ids', self._context.get('active_id'))) old_values = action._context.get('old_values') if old_values: @@ -121,7 +121,7 @@ class ServerActions(models.Model): if not action.activity_type_id or not self._context.get('active_id') or self._is_recompute(action): return False - records = self.env[action.model_id.model].browse(self._context.get('active_ids', self._context.get('active_id'))) + records = self.env[action.model_name].browse(self._context.get('active_ids', self._context.get('active_id'))) vals = { 'summary': action.activity_summary or '', -- cgit v1.2.3