diff --git a/document_page_approval/README.rst b/document_page_approval/README.rst index a6cb0b8f..e41afd62 100644 --- a/document_page_approval/README.rst +++ b/document_page_approval/README.rst @@ -14,13 +14,13 @@ Document Page Approval :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |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 .. |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 .. |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 |badge1| |badge2| |badge3| |badge4| |badge5| @@ -61,7 +61,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. 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 -`feedback `_. +`feedback `_. 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 promote its widespread use. -This module is part of the `OCA/knowledge `_ project on GitHub. +This module is part of the `OCA/knowledge `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/document_page_approval/__manifest__.py b/document_page_approval/__manifest__.py index e2d23982..eaf8b91e 100644 --- a/document_page_approval/__manifest__.py +++ b/document_page_approval/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Document Page Approval", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "author": "Savoir-faire Linux, Odoo Community Association (OCA)", "website": "https://github.com/OCA/knowledge", "license": "AGPL-3", diff --git a/document_page_approval/i18n/document_page_approval.pot b/document_page_approval/i18n/document_page_approval.pot index 22d59f4b..a30f9dd6 100644 --- a/document_page_approval/i18n/document_page_approval.pot +++ b/document_page_approval/i18n/document_page_approval.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -54,6 +54,11 @@ msgid "" " It is highly recommended that you edit that one instead of creating a new one." 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 #: 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 @@ -95,8 +100,8 @@ msgid "Approved by" msgstr "" #. 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_terms:ir.ui.view,arch_db:document_page_approval.view_wiki_history_filter msgid "Approver" msgstr "" @@ -110,6 +115,11 @@ msgstr "" msgid "Approver groups" 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 #: model_terms:ir.ui.view,arch_db:document_page_approval.wiki_history_form_inherit msgid "Back to draft" @@ -157,6 +167,12 @@ msgstr "" msgid "Change request has been approved by %s." 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 #: model:ir.model,name:document_page_approval.model_document_page msgid "Document Page" @@ -173,6 +189,21 @@ msgstr "" msgid "Draft" 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 #: model:ir.model.fields,help:document_page_approval.field_document_page__approver_group_ids msgid "Groups that can approve changes to this document" @@ -188,12 +219,56 @@ msgstr "" msgid "History" 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 #: 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 msgid "If true, changes of this page require approval" 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 #: model:mail.template,subject:document_page_approval.email_template_new_draft_need_approval msgid "New version of ${object.display_name} needs your approval" @@ -205,6 +280,31 @@ msgstr "" msgid "New version of the document %s approved." 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 #: 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 @@ -221,6 +321,11 @@ msgstr "" msgid "Require approval for changes on this page or its child pages." 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 #: model_terms:ir.ui.view,arch_db:document_page_approval.wiki_history_form_inherit msgid "Send to Review" @@ -255,6 +360,16 @@ msgstr "" msgid "URL" 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 #: model:ir.model.fields,field_description:document_page_approval.field_document_page__user_has_drafts msgid "User has drafts?" @@ -265,6 +380,16 @@ msgstr "" msgid "Users must also belong to the Approvers group" 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 #: code:addons/document_page_approval/models/document_page_history.py:0 #, python-format diff --git a/document_page_approval/models/document_page_history.py b/document_page_approval/models/document_page_history.py index 4d70f86f..933496c4 100644 --- a/document_page_approval/models/document_page_history.py +++ b/document_page_approval/models/document_page_history.py @@ -110,13 +110,13 @@ class DocumentPageHistory(models.Model): rec.page_id._compute_history_head() # Notify state change rec.message_post( - subtype="mt_comment", + subtype_xmlid="mail.mt_comment", body=_("Change request has been approved by %s.") % (self.env.user.name), ) # Notify followers a new version is available 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), ) @@ -125,7 +125,7 @@ class DocumentPageHistory(models.Model): self.write({"state": "cancelled"}) for rec in self: rec.message_post( - subtype="mt_comment", + subtype_xmlid="mail.mt_comment", body=_("Change request %s has been cancelled by %s.") % (rec.display_name, self.env.user.name), ) diff --git a/document_page_approval/static/description/index.html b/document_page_approval/static/description/index.html index 70a02809..5e34414d 100644 --- a/document_page_approval/static/description/index.html +++ b/document_page_approval/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/knowledge Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/knowledge Translate me on Weblate Try me on Runbot

This module adds a workflow to approve page modifications and show the approved version by default.

Table of contents

@@ -411,7 +411,7 @@ page history to review.

Bugs are tracked on GitHub Issues. 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 -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -444,7 +444,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/knowledge project on GitHub.

+

This module is part of the OCA/knowledge project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.