mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
[FIX] document_page_approval: fix string
This commit is contained in:
parent
68eb8430c3
commit
8df3a62f85
@ -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 ""
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user