Merge PR #258 into 12.0

Signed-off-by etobella
This commit is contained in:
OCA-git-bot 2020-11-01 08:03:02 +00:00
commit 334dbd7811
2 changed files with 8 additions and 6 deletions

View File

@ -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 ""

View File

@ -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