[MIG] document_page_approval: Migration to 14.0

[UPD] Update document_page_approval.pot

[UPD] README.rst
This commit is contained in:
Jeroen Vet 2021-02-23 16:48:02 +08:00 committed by Bhavesh Heliconia
parent 508727b513
commit b4a66d9b3f
5 changed files with 139 additions and 14 deletions

View File

@ -14,13 +14,13 @@ Document Page Approval
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
:target: https://github.com/OCA/knowledge/tree/13.0/document_page_approval :target: https://github.com/OCA/knowledge/tree/14.0/document_page_approval
:alt: OCA/knowledge :alt: OCA/knowledge
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/knowledge-13-0/knowledge-13-0-document_page_approval :target: https://translation.odoo-community.org/projects/knowledge-14-0/knowledge-14-0-document_page_approval
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/118/13.0 :target: https://runbot.odoo-community.org/runbot/118/14.0
:alt: Try me on Runbot :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@ -61,7 +61,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_.
In case of trouble, please check there if your issue has already been reported. In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_approval%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_approval%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.
@ -100,6 +100,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use. promote its widespread use.
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/13.0/document_page_approval>`_ project on GitHub. This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/14.0/document_page_approval>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -3,7 +3,7 @@
{ {
"name": "Document Page Approval", "name": "Document Page Approval",
"version": "13.0.1.0.0", "version": "14.0.1.0.0",
"author": "Savoir-faire Linux, Odoo Community Association (OCA)", "author": "Savoir-faire Linux, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge", "website": "https://github.com/OCA/knowledge",
"license": "AGPL-3", "license": "AGPL-3",

View File

@ -4,7 +4,7 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 13.0\n" "Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -54,6 +54,11 @@ msgid ""
" It is highly recommended that you edit that one instead of creating a new one." " It is highly recommended that you edit that one instead of creating a new one."
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_needaction
msgid "Action Needed"
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page__am_i_approver #: model:ir.model.fields,field_description:document_page_approval.field_document_page__am_i_approver
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__am_i_approver #: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__am_i_approver
@ -95,8 +100,8 @@ msgid "Approved by"
msgstr "" msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model_terms:ir.ui.view,arch_db:document_page_approval.view_wiki_history_filter
#: model:res.groups,name:document_page_approval.group_document_approver_user #: model:res.groups,name:document_page_approval.group_document_approver_user
#: model_terms:ir.ui.view,arch_db:document_page_approval.view_wiki_history_filter
msgid "Approver" msgid "Approver"
msgstr "" msgstr ""
@ -110,6 +115,11 @@ msgstr ""
msgid "Approver groups" msgid "Approver groups"
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_attachment_count
msgid "Attachment Count"
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model_terms:ir.ui.view,arch_db:document_page_approval.wiki_history_form_inherit #: model_terms:ir.ui.view,arch_db:document_page_approval.wiki_history_form_inherit
msgid "Back to draft" msgid "Back to draft"
@ -157,6 +167,12 @@ msgstr ""
msgid "Change request has been approved by %s." msgid "Change request has been approved by %s."
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page__display_name
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__display_name
msgid "Display Name"
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model:ir.model,name:document_page_approval.model_document_page #: model:ir.model,name:document_page_approval.model_document_page
msgid "Document Page" msgid "Document Page"
@ -173,6 +189,21 @@ msgstr ""
msgid "Draft" msgid "Draft"
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_follower_ids
msgid "Followers"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_channel_ids
msgid "Followers (Channels)"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_partner_ids
msgid "Followers (Partners)"
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model:ir.model.fields,help:document_page_approval.field_document_page__approver_group_ids #: model:ir.model.fields,help:document_page_approval.field_document_page__approver_group_ids
msgid "Groups that can approve changes to this document" msgid "Groups that can approve changes to this document"
@ -188,12 +219,56 @@ msgstr ""
msgid "History" msgid "History"
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page__id
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__id
msgid "ID"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,help:document_page_approval.field_document_page_history__message_needaction
#: model:ir.model.fields,help:document_page_approval.field_document_page_history__message_unread
msgid "If checked, new messages require your attention."
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,help:document_page_approval.field_document_page_history__message_has_error
#: model:ir.model.fields,help:document_page_approval.field_document_page_history__message_has_sms_error
msgid "If checked, some messages have a delivery error."
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model:ir.model.fields,help:document_page_approval.field_document_page__is_approval_required #: model:ir.model.fields,help:document_page_approval.field_document_page__is_approval_required
#: model:ir.model.fields,help:document_page_approval.field_document_page_history__is_approval_required #: model:ir.model.fields,help:document_page_approval.field_document_page_history__is_approval_required
msgid "If true, changes of this page require approval" msgid "If true, changes of this page require approval"
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_is_follower
msgid "Is Follower"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page____last_update
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history____last_update
msgid "Last Modified on"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_main_attachment_id
msgid "Main Attachment"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_has_error
msgid "Message Delivery error"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_ids
msgid "Messages"
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model:mail.template,subject:document_page_approval.email_template_new_draft_need_approval #: model:mail.template,subject:document_page_approval.email_template_new_draft_need_approval
msgid "New version of ${object.display_name} needs your approval" msgid "New version of ${object.display_name} needs your approval"
@ -205,6 +280,31 @@ msgstr ""
msgid "New version of the document %s approved." msgid "New version of the document %s approved."
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_needaction_counter
msgid "Number of Actions"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_has_error_counter
msgid "Number of errors"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,help:document_page_approval.field_document_page_history__message_needaction_counter
msgid "Number of messages which requires an action"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,help:document_page_approval.field_document_page_history__message_has_error_counter
msgid "Number of messages with delivery error"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,help:document_page_approval.field_document_page_history__message_unread_counter
msgid "Number of unread messages"
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model:ir.model.fields.selection,name:document_page_approval.selection__document_page_history__state__to_approve #: model:ir.model.fields.selection,name:document_page_approval.selection__document_page_history__state__to_approve
#: model_terms:ir.ui.view,arch_db:document_page_approval.view_wiki_history_filter #: model_terms:ir.ui.view,arch_db:document_page_approval.view_wiki_history_filter
@ -221,6 +321,11 @@ msgstr ""
msgid "Require approval for changes on this page or its child pages." msgid "Require approval for changes on this page or its child pages."
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_has_sms_error
msgid "SMS Delivery error"
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model_terms:ir.ui.view,arch_db:document_page_approval.wiki_history_form_inherit #: model_terms:ir.ui.view,arch_db:document_page_approval.wiki_history_form_inherit
msgid "Send to Review" msgid "Send to Review"
@ -255,6 +360,16 @@ msgstr ""
msgid "URL" msgid "URL"
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_unread
msgid "Unread Messages"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__message_unread_counter
msgid "Unread Messages Counter"
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page__user_has_drafts #: model:ir.model.fields,field_description:document_page_approval.field_document_page__user_has_drafts
msgid "User has drafts?" msgid "User has drafts?"
@ -265,6 +380,16 @@ msgstr ""
msgid "Users must also belong to the Approvers group" msgid "Users must also belong to the Approvers group"
msgstr "" msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,field_description:document_page_approval.field_document_page_history__website_message_ids
msgid "Website Messages"
msgstr ""
#. module: document_page_approval
#: model:ir.model.fields,help:document_page_approval.field_document_page_history__website_message_ids
msgid "Website communication history"
msgstr ""
#. module: document_page_approval #. module: document_page_approval
#: code:addons/document_page_approval/models/document_page_history.py:0 #: code:addons/document_page_approval/models/document_page_history.py:0
#, python-format #, python-format

View File

@ -110,13 +110,13 @@ class DocumentPageHistory(models.Model):
rec.page_id._compute_history_head() rec.page_id._compute_history_head()
# Notify state change # Notify state change
rec.message_post( rec.message_post(
subtype="mt_comment", subtype_xmlid="mail.mt_comment",
body=_("Change request has been approved by %s.") body=_("Change request has been approved by %s.")
% (self.env.user.name), % (self.env.user.name),
) )
# Notify followers a new version is available # Notify followers a new version is available
rec.page_id.message_post( rec.page_id.message_post(
subtype="mt_comment", subtype_xmlid="mail.mt_comment",
body=_("New version of the document %s approved.") % (rec.page_id.name), body=_("New version of the document %s approved.") % (rec.page_id.name),
) )
@ -125,7 +125,7 @@ class DocumentPageHistory(models.Model):
self.write({"state": "cancelled"}) self.write({"state": "cancelled"})
for rec in self: for rec in self:
rec.message_post( rec.message_post(
subtype="mt_comment", subtype_xmlid="mail.mt_comment",
body=_("Change request <b>%s</b> has been cancelled by %s.") body=_("Change request <b>%s</b> has been cancelled by %s.")
% (rec.display_name, self.env.user.name), % (rec.display_name, self.env.user.name),
) )

View File

@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/knowledge/tree/13.0/document_page_approval"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/knowledge-13-0/knowledge-13-0-document_page_approval"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/118/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/knowledge/tree/14.0/document_page_approval"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/knowledge-14-0/knowledge-14-0-document_page_approval"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/118/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module adds a workflow to approve page modifications <p>This module adds a workflow to approve page modifications
and show the approved version by default.</p> and show the approved version by default.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
@ -411,7 +411,7 @@ page history to review.</li>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_approval%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_approval%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@ -444,7 +444,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/13.0/document_page_approval">OCA/knowledge</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/14.0/document_page_approval">OCA/knowledge</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div> </div>
</div> </div>