diff --git a/document_page_approval/i18n/document_page_approval.pot b/document_page_approval/i18n/document_page_approval.pot index 5192b42e..bbb2d981 100644 --- a/document_page_approval/i18n/document_page_approval.pot +++ b/document_page_approval/i18n/document_page_approval.pot @@ -6,6 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-10-23 20:19+0000\n" +"PO-Revision-Date: 2020-10-23 20:19+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -262,21 +264,21 @@ msgstr "" #. module: document_page_approval #: code:addons/document_page_approval/models/document_page_history.py:102 #, python-format -msgid "You are not authorized to do this. \n" +msgid "You are not authorized to do this.\n" "Only approvers with these groups can approve this: " msgstr "" #. module: document_page_approval #: code:addons/document_page_approval/models/document_page_history.py:62 #, python-format -msgid "You are not authorized to do this. \n" +msgid "You are not authorized to do this.\n" "Only owners or approvers can reopen Change Requests." msgstr "" #. module: document_page_approval #: code:addons/document_page_approval/models/document_page_history.py:79 #, python-format -msgid "You are not authorized to do this. \n" +msgid "You are not authorized to do this.\n" "Only owners or approvers can request approval." msgstr "" diff --git a/document_page_approval/models/document_page_history.py b/document_page_approval/models/document_page_history.py index f836050b..11f0874a 100644 --- a/document_page_approval/models/document_page_history.py +++ b/document_page_approval/models/document_page_history.py @@ -59,7 +59,7 @@ class DocumentPageHistory(models.Model): _('You need to cancel it before reopening.')) if not (rec.am_i_owner or rec.am_i_approver): raise UserError( - _('You are not authorized to do this.\r\n' + _('You are not authorized to do this.\n' 'Only owners or approvers can reopen Change Requests.')) rec.write({'state': 'draft'}) @@ -76,7 +76,7 @@ class DocumentPageHistory(models.Model): _("Can't approve pages in '%s' state.") % rec.state) if not (rec.am_i_owner or rec.am_i_approver): raise UserError( - _('You are not authorized to do this.\r\n' + _('You are not authorized to do this.\n' 'Only owners or approvers can request approval.')) # request approval if rec.is_approval_required: @@ -100,7 +100,7 @@ class DocumentPageHistory(models.Model): _("Can't approve page in '%s' state.") % rec.state) if not rec.am_i_approver: raise UserError(_( - 'You are not authorized to do this.\r\n' + 'You are not authorized to do this.\n' 'Only approvers with these groups can approve this: ' ) % ', '.join( [g.display_name