Skip to content

Commit

Permalink
[MIG] dms: Migration from 15.0 to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KB committed Oct 29, 2023
1 parent 87340fd commit 70ee0d4
Show file tree
Hide file tree
Showing 47 changed files with 1,183 additions and 405 deletions.
8 changes: 8 additions & 0 deletions dms/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ Contributors
* Pedro M. Baeza
* Jairo Llopis

* `Elego <https://www.elegosoft.com>`_:

* Yu Weng <[email protected]>
* Philip Witte <[email protected]>
* Khanh Bui <[email protected]>

Other credits
~~~~~~~~~~~~~

Expand All @@ -161,6 +167,8 @@ Some pictures are based on or inspired by:
* `Roundicons <https://www.flaticon.com/authors/roundicons>`_
* `Smashicons <https://www.flaticon.com/authors/smashicons>`_

The migration of this module from 15.0 to 16.0 was finanically supported by `AgentERP <https://www.agenterp.com>`_

Maintainers
~~~~~~~~~~~

Expand Down
26 changes: 11 additions & 15 deletions dms/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@
{
"name": "Document Management System",
"summary": """Document Management System for Odoo""",
"version": "15.0.1.8.2",
"version": "16.0.1.0.0",
"category": "Document Management",
"license": "LGPL-3",
"website": "https://github.com/OCA/dms",
"author": "MuK IT, Tecnativa, Odoo Community Association (OCA)",
"depends": [
"web_drop_target",
"mail",
"http_routing",
"portal",
"mail_preview_base",
"base",
],
"data": [
"security/security.xml",
Expand All @@ -32,20 +31,17 @@
"views/dms_portal_templates.xml",
],
"assets": {
"mail.assets_messaging": [
("include", "mail.assets_core_messaging"),
"dms/static/src/models/*.js",
],
"web.assets_backend": [
"dms/static/src/scss/variables.scss",
"dms/static/src/scss/file_kanban.scss",
"dms/static/src/scss/directory_kanban.scss",
"dms/static/src/js/fields/path.js",
"dms/static/src/js/views/many_drop_target.js",
"dms/static/src/js/views/search_panel.esm.js",
"dms/static/src/js/views/file_list_controller.js",
"dms/static/src/js/views/file_list_view.js",
"dms/static/src/js/views/file_kanban_controller.js",
"dms/static/src/js/views/file_kanban_renderer.js",
"dms/static/src/js/views/file_kanban_view.js",
"dms/static/src/scss/*",
"dms/static/src/js/fields/*",
"dms/static/src/js/views/*.esm.js",
"dms/static/src/js/views/*.xml",
"dms/static/src/js/views/fields/binary/*",
],
"web.assets_qweb": ["dms/static/src/xml/views.xml"],
"web.assets_frontend": ["dms/static/src/js/dms_portal_tour.js"],
},
"demo": [
Expand Down
12 changes: 6 additions & 6 deletions dms/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ def document_onboarding_directory(self):
check = request.env.user.has_group("dms.group_dms_manager")
if check and not closed:
return {
"html": request.env.ref(
"dms.document_onboarding_directory_panel"
)._render(
"html": request.env["ir.qweb"]._render(
request.env.ref("dms.document_onboarding_directory_panel").id,
{
"state": company.get_and_update_documents_onboarding_state(),
"company": company,
}
},
)
}
return {}
Expand All @@ -30,11 +29,12 @@ def document_onboarding_file(self):
check = request.env.user.has_group("dms.group_dms_manager")
if check and not closed:
return {
"html": request.env.ref("dms.document_onboarding_file_panel")._render(
"html": request.env["ir.qweb"]._render(
request.env.ref("dms.document_onboarding_file_panel").id,
{
"state": company.get_and_update_documents_onboarding_state(),
"company": company,
}
},
)
}
return {}
Expand Down
4 changes: 2 additions & 2 deletions dms/controllers/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import base64

from odoo import _, http
from odoo.http import request
from odoo.http import content_disposition, request
from odoo.osv.expression import OR

from odoo.addons.portal.controllers.portal import CustomerPortal
from odoo.addons.web.controllers.main import content_disposition, ensure_db
from odoo.addons.web.controllers.utils import ensure_db


class CustomerPortal(CustomerPortal):
Expand Down
Loading

0 comments on commit 70ee0d4

Please sign in to comment.