Skip to content

Commit

Permalink
[MIG] document_knowledge: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimkhoi3010 committed Nov 13, 2024
1 parent 9cc5acb commit f82dce4
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 35 deletions.
4 changes: 3 additions & 1 deletion document_knowledge/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@ Contributors
Trobz

- Dung Tran <[email protected]>
- Khoi (Kien Kim) [email protected]

Other credits
-------------

The development of this module has been financially supported by:
The migration of this module from 17.0 to 18.0 was financially supported
by:

- Camptocamp

Expand Down
2 changes: 1 addition & 1 deletion document_knowledge/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Documents Knowledge",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "OpenERP SA,"
"MONK Software, "
"Tecnativa, "
Expand Down
20 changes: 0 additions & 20 deletions document_knowledge/models/res_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,7 @@
class DocumentKnowledgeConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

module_attachment_indexation = fields.Boolean(
"Attachments List and Document Indexation",
help="Document indexation, full text search of attachements.\n"
"- This installs the module attachment_indexation.",
)

group_ir_attachment_user = fields.Boolean(
string="Central access to Documents",
help="When you set this field all users will be able to manage "
"attachments centrally, from the Document Knowledge/Documents menu.",
implied_group="document_knowledge.group_ir_attachment_user",
)

module_document_page = fields.Boolean(
"Manage document pages (Wiki)",
help="Provide document page and category as a wiki.\n"
"- This installs the module document_page.",
)

module_document_page_approval = fields.Boolean(
"Manage documents approval",
help="Add workflow on documents per category.\n"
"- This installs the module document_page_approval.",
)
1 change: 1 addition & 0 deletions document_knowledge/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
Trobz

- Dung Tran \<<[email protected]>\>
- Khoi (Kien Kim) <[email protected]>
2 changes: 1 addition & 1 deletion document_knowledge/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
The development of this module has been financially supported by:
The migration of this module from 17.0 to 18.0 was financially supported by:

- Camptocamp
4 changes: 3 additions & 1 deletion document_knowledge/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,13 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<p>Trobz</p>
<ul class="simple">
<li>Dung Tran &lt;<a class="reference external" href="mailto:dungtd&#64;trobz.com">dungtd&#64;trobz.com</a>&gt;</li>
<li>Khoi (Kien Kim) <a class="reference external" href="mailto:khoikk&#64;trobz.com">khoikk&#64;trobz.com</a></li>
</ul>
</div>
<div class="section" id="other-credits">
<h2><a class="toc-backref" href="#toc-entry-7">Other credits</a></h2>
<p>The development of this module has been financially supported by:</p>
<p>The migration of this module from 17.0 to 18.0 was financially supported
by:</p>
<ul class="simple">
<li>Camptocamp</li>
</ul>
Expand Down
3 changes: 2 additions & 1 deletion document_knowledge/views/document_knowledge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<odoo>
<record id="knowledge_action_documents" model="ir.actions.act_window">
<field name="name">Documents</field>
<field name="path">documents</field>
<field name="res_model">ir.attachment</field>
<field name="view_mode">kanban,tree,form</field>
<field name="view_mode">kanban,list,form</field>
<field name="context">{'search_default_user_documents': True}</field>
</record>
<record id="ir_attachment_view_user_documents" model="ir.ui.view">
Expand Down
15 changes: 5 additions & 10 deletions document_knowledge/views/res_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,13 @@
name="maintenance_mode_setting"
title="Knowledge and Documents Management"
>
<setting>
<field name="module_attachment_indexation" />
</setting>
<setting>
<setting
id="attachment_user"
help="When you set this field all users will be able to manage
attachments centrally, from the Document Knowledge/Documents menu."
>
<field name="group_ir_attachment_user" />
</setting>
<setting>
<field name="module_document_page" />
</setting>
<setting>
<field name="module_document_page_approval" />
</setting>
</block>
</app>
</xpath>
Expand Down

0 comments on commit f82dce4

Please sign in to comment.