[MIG] knowledge: Migration to 13.0

This commit is contained in:
ernesto 2019-11-05 19:24:20 -05:00 committed by Khôi (Kiên Kim)
parent 317a62f3ea
commit 8044c75465
8 changed files with 56 additions and 30 deletions

View File

@ -14,13 +14,13 @@ Knowledge
: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/12.0/knowledge :target: https://github.com/OCA/knowledge/tree/13.0/knowledge
: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-12-0/knowledge-12-0-knowledge :target: https://translation.odoo-community.org/projects/knowledge-13-0/knowledge-13-0-knowledge
: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/12.0 :target: https://runbot.odoo-community.org/runbot/118/13.0
:alt: Try me on Runbot :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@ -71,7 +71,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:%20knowledge%0Aversion:%2012.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:%20knowledge%0Aversion:%2013.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.
@ -95,9 +95,12 @@ Contributors
* Leonardo Donelli <leonardo.donelli@monksoftware.it> * Leonardo Donelli <leonardo.donelli@monksoftware.it>
* Maxime Chambreuil <mchambreuil@ursainfosystems.com> * Maxime Chambreuil <mchambreuil@ursainfosystems.com>
* Fayez Qandeel * Fayez Qandeel
* Vicent Cubells <vicent.cubells@tecnativa.com>
* Iván Todorovich <ivan.todorovich@gmail.com> * Iván Todorovich <ivan.todorovich@gmail.com>
* Jordi Ballester <jordi.ballester@eficent.com> * Jordi Ballester <jordi.ballester@eficent.com>
* `Tecnativa <https://www.tecnativa.com>`_:
* Vicent Cubells
* Ernesto Tejeda
Maintainers Maintainers
~~~~~~~~~~~ ~~~~~~~~~~~
@ -112,6 +115,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/12.0/knowledge>`_ project on GitHub. This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/13.0/knowledge>`_ 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

@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{ {
"name": "Knowledge", "name": "Knowledge",
"version": "12.0.1.0.0", "version": "13.0.1.0.0",
"author": "OpenERP SA," "author": "OpenERP SA,"
"MONK Software, " "MONK Software, "
"Tecnativa, " "Tecnativa, "
@ -15,6 +15,7 @@
"data": [ "data": [
"data/ir_module_category.xml", "data/ir_module_category.xml",
"security/knowledge_security.xml", "security/knowledge_security.xml",
"data/res_users.xml",
"views/knowledge.xml", "views/knowledge.xml",
"views/res_config.xml", "views/res_config.xml",
], ],

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="base.user_admin" model="res.users">
<field name="groups_id" eval="[(4,ref('knowledge.group_document_user'))]"/>
</record>
</odoo>

View File

@ -4,9 +4,9 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 12.0\n" "Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@ -15,7 +15,8 @@ msgstr ""
#. module: knowledge #. module: knowledge
#: model:ir.model.fields,help:knowledge.field_res_config_settings__module_document_page_approval #: model:ir.model.fields,help:knowledge.field_res_config_settings__module_document_page_approval
msgid "Add workflow on documents per category.\n" msgid ""
"Add workflow on documents per category.\n"
"- This installs the module document_page_approval." "- This installs the module document_page_approval."
msgstr "" msgstr ""
@ -30,7 +31,7 @@ msgid "Attachment"
msgstr "" msgstr ""
#. module: knowledge #. module: knowledge
#: model:ir.model.fields,field_description:knowledge.field_res_config_settings__module_document #: model:ir.model.fields,field_description:knowledge.field_res_config_settings__module_attachment_indexation
msgid "Attachments List and Document Indexation" msgid "Attachments List and Document Indexation"
msgstr "" msgstr ""
@ -52,14 +53,16 @@ msgstr ""
#. module: knowledge #. module: knowledge
#: model:ir.model.fields,help:knowledge.field_res_config_settings__module_cmis_read #: model:ir.model.fields,help:knowledge.field_res_config_settings__module_cmis_read
msgid "Connect Odoo with a CMIS compatible server to attach files\n" msgid ""
"Connect Odoo with a CMIS compatible server to attach files\n"
"to an Odoo record.\n" "to an Odoo record.\n"
"- This installs the module cmis_read." "- This installs the module cmis_read."
msgstr "" msgstr ""
#. module: knowledge #. module: knowledge
#: model:ir.model.fields,help:knowledge.field_res_config_settings__module_cmis_write #: model:ir.model.fields,help:knowledge.field_res_config_settings__module_cmis_write
msgid "Connect Odoo with a CMIS compatible server to store files.\n" msgid ""
"Connect Odoo with a CMIS compatible server to store files.\n"
"- This installs the module cmis_write." "- This installs the module cmis_write."
msgstr "" msgstr ""
@ -69,9 +72,10 @@ msgid "Connect with an external DMS"
msgstr "" msgstr ""
#. module: knowledge #. module: knowledge
#: model:ir.model.fields,help:knowledge.field_res_config_settings__module_document #: model:ir.model.fields,help:knowledge.field_res_config_settings__module_attachment_indexation
msgid "Document indexation, full text search of attachements.\n" msgid ""
"- This installs the module document." "Document indexation, full text search of attachements.\n"
"- This installs the module attachment_indexation."
msgstr "" msgstr ""
#. module: knowledge #. module: knowledge
@ -111,7 +115,8 @@ msgstr ""
#. module: knowledge #. module: knowledge
#: model:ir.module.category,description:knowledge.module_category_knowledge #: model:ir.module.category,description:knowledge.module_category_knowledge
msgid "Manage documents and knowledge-related\n" msgid ""
"Manage documents and knowledge-related\n"
" applications\n" " applications\n"
" " " "
msgstr "" msgstr ""
@ -128,7 +133,8 @@ msgstr ""
#. module: knowledge #. module: knowledge
#: model:ir.model.fields,help:knowledge.field_res_config_settings__module_document_page #: model:ir.model.fields,help:knowledge.field_res_config_settings__module_document_page
msgid "Provide document page and category as a wiki.\n" msgid ""
"Provide document page and category as a wiki.\n"
"- This installs the module document_page." "- This installs the module document_page."
msgstr "" msgstr ""
@ -155,6 +161,7 @@ msgstr ""
#. module: knowledge #. module: knowledge
#: model:ir.model.fields,help:knowledge.field_res_config_settings__group_ir_attachment_user #: model:ir.model.fields,help:knowledge.field_res_config_settings__group_ir_attachment_user
msgid "When you set this field all users will be able to manage attachments centrally, from the Knowledge/Documents menu." msgid ""
"When you set this field all users will be able to manage attachments "
"centrally, from the Knowledge/Documents menu."
msgstr "" msgstr ""

View File

@ -7,10 +7,10 @@ from odoo import fields, models
class KnowledgeConfigSettings(models.TransientModel): class KnowledgeConfigSettings(models.TransientModel):
_inherit = "res.config.settings" _inherit = "res.config.settings"
module_document = fields.Boolean( module_attachment_indexation = fields.Boolean(
"Attachments List and Document Indexation", "Attachments List and Document Indexation",
help="Document indexation, full text search of attachements.\n" help="Document indexation, full text search of attachements.\n"
"- This installs the module document.", "- This installs the module attachment_indexation.",
) )
group_ir_attachment_user = fields.Boolean( group_ir_attachment_user = fields.Boolean(

View File

@ -4,6 +4,9 @@
* Leonardo Donelli <leonardo.donelli@monksoftware.it> * Leonardo Donelli <leonardo.donelli@monksoftware.it>
* Maxime Chambreuil <mchambreuil@ursainfosystems.com> * Maxime Chambreuil <mchambreuil@ursainfosystems.com>
* Fayez Qandeel * Fayez Qandeel
* Vicent Cubells <vicent.cubells@tecnativa.com>
* Iván Todorovich <ivan.todorovich@gmail.com> * Iván Todorovich <ivan.todorovich@gmail.com>
* Jordi Ballester <jordi.ballester@eficent.com> * Jordi Ballester <jordi.ballester@eficent.com>
* `Tecnativa <https://www.tecnativa.com>`_:
* Vicent Cubells
* Ernesto Tejeda

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/12.0/knowledge"><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-12-0/knowledge-12-0-knowledge"><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/12.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/13.0/knowledge"><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-knowledge"><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>This module is the base for any knowledge and document management application.</p> <p>This module is the base for any knowledge and document management application.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
@ -418,7 +418,7 @@ for which they have read permission.</p>
<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:%20knowledge%0Aversion:%2012.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:%20knowledge%0Aversion:%2013.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">
@ -441,9 +441,13 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li>Leonardo Donelli &lt;<a class="reference external" href="mailto:leonardo.donelli&#64;monksoftware.it">leonardo.donelli&#64;monksoftware.it</a>&gt;</li> <li>Leonardo Donelli &lt;<a class="reference external" href="mailto:leonardo.donelli&#64;monksoftware.it">leonardo.donelli&#64;monksoftware.it</a>&gt;</li>
<li>Maxime Chambreuil &lt;<a class="reference external" href="mailto:mchambreuil&#64;ursainfosystems.com">mchambreuil&#64;ursainfosystems.com</a>&gt;</li> <li>Maxime Chambreuil &lt;<a class="reference external" href="mailto:mchambreuil&#64;ursainfosystems.com">mchambreuil&#64;ursainfosystems.com</a>&gt;</li>
<li>Fayez Qandeel</li> <li>Fayez Qandeel</li>
<li>Vicent Cubells &lt;<a class="reference external" href="mailto:vicent.cubells&#64;tecnativa.com">vicent.cubells&#64;tecnativa.com</a>&gt;</li>
<li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;gmail.com">ivan.todorovich&#64;gmail.com</a>&gt;</li> <li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;gmail.com">ivan.todorovich&#64;gmail.com</a>&gt;</li>
<li>Jordi Ballester &lt;<a class="reference external" href="mailto:jordi.ballester&#64;eficent.com">jordi.ballester&#64;eficent.com</a>&gt;</li> <li>Jordi Ballester &lt;<a class="reference external" href="mailto:jordi.ballester&#64;eficent.com">jordi.ballester&#64;eficent.com</a>&gt;</li>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Vicent Cubells</li>
<li>Ernesto Tejeda</li>
</ul>
</li>
</ul> </ul>
</div> </div>
<div class="section" id="maintainers"> <div class="section" id="maintainers">
@ -453,7 +457,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/12.0/knowledge">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/13.0/knowledge">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>

View File

@ -15,10 +15,10 @@
id="maintenance_mode_setting"> id="maintenance_mode_setting">
<div class="col-xs-12 col-md-12 o_setting_box"> <div class="col-xs-12 col-md-12 o_setting_box">
<div class="o_setting_left_pane"> <div class="o_setting_left_pane">
<field name="module_document"/> <field name="module_attachment_indexation"/>
</div> </div>
<div class="o_setting_right_pane"> <div class="o_setting_right_pane">
<label for="module_document"/> <label for="module_attachment_indexation"/>
</div> </div>
</div> </div>
<div class="col-xs-12 col-md-12 o_setting_box"> <div class="col-xs-12 col-md-12 o_setting_box">