mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-25 01:48:41 -06:00
commit
334dbd7811
@ -6,6 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 12.0\n"
|
"Project-Id-Version: Odoo Server 12.0\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -262,21 +264,21 @@ msgstr ""
|
|||||||
#. module: document_page_approval
|
#. module: document_page_approval
|
||||||
#: code:addons/document_page_approval/models/document_page_history.py:102
|
#: code:addons/document_page_approval/models/document_page_history.py:102
|
||||||
#, python-format
|
#, 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: "
|
"Only approvers with these groups can approve this: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: document_page_approval
|
#. module: document_page_approval
|
||||||
#: code:addons/document_page_approval/models/document_page_history.py:62
|
#: code:addons/document_page_approval/models/document_page_history.py:62
|
||||||
#, python-format
|
#, 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."
|
"Only owners or approvers can reopen Change Requests."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: document_page_approval
|
#. module: document_page_approval
|
||||||
#: code:addons/document_page_approval/models/document_page_history.py:79
|
#: code:addons/document_page_approval/models/document_page_history.py:79
|
||||||
#, python-format
|
#, 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."
|
"Only owners or approvers can request approval."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ class DocumentPageHistory(models.Model):
|
|||||||
_('You need to cancel it before reopening.'))
|
_('You need to cancel it before reopening.'))
|
||||||
if not (rec.am_i_owner or rec.am_i_approver):
|
if not (rec.am_i_owner or rec.am_i_approver):
|
||||||
raise UserError(
|
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.'))
|
'Only owners or approvers can reopen Change Requests.'))
|
||||||
rec.write({'state': 'draft'})
|
rec.write({'state': 'draft'})
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ class DocumentPageHistory(models.Model):
|
|||||||
_("Can't approve pages in '%s' state.") % rec.state)
|
_("Can't approve pages in '%s' state.") % rec.state)
|
||||||
if not (rec.am_i_owner or rec.am_i_approver):
|
if not (rec.am_i_owner or rec.am_i_approver):
|
||||||
raise UserError(
|
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.'))
|
'Only owners or approvers can request approval.'))
|
||||||
# request approval
|
# request approval
|
||||||
if rec.is_approval_required:
|
if rec.is_approval_required:
|
||||||
@ -100,7 +100,7 @@ class DocumentPageHistory(models.Model):
|
|||||||
_("Can't approve page in '%s' state.") % rec.state)
|
_("Can't approve page in '%s' state.") % rec.state)
|
||||||
if not rec.am_i_approver:
|
if not rec.am_i_approver:
|
||||||
raise UserError(_(
|
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: '
|
'Only approvers with these groups can approve this: '
|
||||||
) % ', '.join(
|
) % ', '.join(
|
||||||
[g.display_name
|
[g.display_name
|
||||||
|
Loading…
Reference in New Issue
Block a user