odoo-addon-dms 16.0.1.8.0.3__py3-none-any.whl → 17.0.1.0.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. odoo/addons/dms/README.rst +132 -78
  2. odoo/addons/dms/__manifest__.py +34 -16
  3. odoo/addons/dms/actions/file.xml +1 -3
  4. odoo/addons/dms/controllers/main.py +0 -34
  5. odoo/addons/dms/controllers/portal.py +178 -92
  6. odoo/addons/dms/data/onboarding_data.xml +77 -0
  7. odoo/addons/dms/demo/access_group.xml +3 -9
  8. odoo/addons/dms/i18n/de.po +13 -117
  9. odoo/addons/dms/i18n/dms.pot +137 -174
  10. odoo/addons/dms/i18n/es.po +15 -58
  11. odoo/addons/dms/i18n/fr.po +296 -450
  12. odoo/addons/dms/i18n/he_IL.po +13 -117
  13. odoo/addons/dms/i18n/it.po +15 -131
  14. odoo/addons/dms/i18n/nl.po +13 -117
  15. odoo/addons/dms/i18n/pt.po +13 -121
  16. odoo/addons/dms/i18n/pt_BR.po +28 -147
  17. odoo/addons/dms/i18n/ru.po +13 -117
  18. odoo/addons/dms/models/__init__.py +7 -1
  19. odoo/addons/dms/models/abstract_dms_mixin.py +1 -1
  20. odoo/addons/dms/models/access_groups.py +18 -11
  21. odoo/addons/dms/models/base.py +10 -2
  22. odoo/addons/dms/models/directory.py +46 -75
  23. odoo/addons/dms/models/{category.py → dms_category.py} +10 -42
  24. odoo/addons/dms/models/dms_file.py +125 -147
  25. odoo/addons/dms/models/dms_security_mixin.py +26 -22
  26. odoo/addons/dms/models/ir_attachment.py +0 -1
  27. odoo/addons/dms/models/ir_binary.py +19 -0
  28. odoo/addons/dms/models/mail_thread.py +2 -4
  29. odoo/addons/dms/models/mixins_thumbnail.py +13 -8
  30. odoo/addons/dms/models/onboarding_onboarding.py +16 -0
  31. odoo/addons/dms/models/onboarding_onboarding_step.py +50 -0
  32. odoo/addons/dms/models/res_company.py +22 -47
  33. odoo/addons/dms/models/res_config_settings.py +0 -1
  34. odoo/addons/dms/models/storage.py +4 -24
  35. odoo/addons/dms/models/tag.py +1 -1
  36. odoo/addons/dms/readme/CONFIGURE.md +59 -0
  37. odoo/addons/dms/readme/CONTRIBUTORS.md +14 -0
  38. odoo/addons/dms/readme/CREDITS.md +6 -0
  39. odoo/addons/dms/readme/DESCRIPTION.md +9 -0
  40. odoo/addons/dms/readme/INSTALL.md +4 -0
  41. odoo/addons/dms/readme/ROADMAP.md +19 -0
  42. odoo/addons/dms/readme/USAGE.md +11 -0
  43. odoo/addons/dms/security/security.xml +1 -0
  44. odoo/addons/dms/static/description/icon.png +0 -0
  45. odoo/addons/dms/static/description/icon.svg +4 -1
  46. odoo/addons/dms/static/description/index.html +133 -88
  47. odoo/addons/dms/static/description/portal_icon.svg +12 -0
  48. odoo/addons/dms/static/src/js/fields/{path_owl.esm.js → path_json/path_owl.esm.js} +22 -4
  49. odoo/addons/dms/static/src/js/fields/{path_owl.xml → path_json/path_owl.xml} +7 -4
  50. odoo/addons/dms/static/src/js/fields/preview_binary/preview_record.esm.js +47 -0
  51. odoo/addons/dms/static/src/js/{views/fields/binary → fields/preview_binary}/preview_record.xml +5 -4
  52. odoo/addons/dms/static/src/js/views/dms_file_upload.esm.js +155 -148
  53. odoo/addons/dms/static/src/js/views/file_kanban_controller.xml +0 -1
  54. odoo/addons/dms/static/src/js/views/file_kanban_record.esm.js +26 -27
  55. odoo/addons/dms/static/src/js/views/file_kanban_renderer.esm.js +1 -2
  56. odoo/addons/dms/static/src/js/views/file_kanban_renderer.xml +12 -16
  57. odoo/addons/dms/static/src/js/views/file_kanban_view.esm.js +11 -9
  58. odoo/addons/dms/static/src/js/views/file_list_controller.esm.js +1 -1
  59. odoo/addons/dms/static/src/js/views/file_list_renderer.xml +1 -7
  60. odoo/addons/dms/static/src/js/views/file_list_view.esm.js +11 -9
  61. odoo/addons/dms/static/src/js/views/search_panel.esm.js +9 -10
  62. odoo/addons/dms/static/src/models/attachment.esm.js +83 -82
  63. odoo/addons/dms/static/src/models/attachment_image.esm.js +30 -28
  64. odoo/addons/dms/static/src/models/attachment_viewer_viewable.esm.js +27 -25
  65. odoo/addons/dms/static/src/scss/directory_kanban.scss +28 -73
  66. odoo/addons/dms/static/src/scss/dms_common.scss +69 -0
  67. odoo/addons/dms/static/src/scss/file_kanban.scss +22 -34
  68. odoo/addons/dms/static/src/scss/portal.scss +12 -0
  69. odoo/addons/dms/static/tests/tours/dms_portal_tour.esm.js +46 -0
  70. odoo/addons/dms/{views/dms_portal_templates.xml → template/portal.xml} +13 -3
  71. odoo/addons/dms/tests/common.py +20 -4
  72. odoo/addons/dms/tests/data/mail01.eml +2 -2
  73. odoo/addons/dms/tests/data/mail02.eml +2 -2
  74. odoo/addons/dms/tests/test_benchmark.py +16 -21
  75. odoo/addons/dms/tests/test_directory.py +128 -40
  76. odoo/addons/dms/tests/test_file.py +112 -30
  77. odoo/addons/dms/tests/test_file_database.py +50 -24
  78. odoo/addons/dms/tests/test_portal.py +50 -37
  79. odoo/addons/dms/tests/test_storage_attachment.py +85 -63
  80. odoo/addons/dms/tests/test_storage_database.py +89 -35
  81. odoo/addons/dms/tools/file.py +63 -11
  82. odoo/addons/dms/views/dms_access_groups_views.xml +2 -17
  83. odoo/addons/dms/views/{category.xml → dms_category.xml} +4 -9
  84. odoo/addons/dms/views/{directory.xml → dms_directory.xml} +168 -176
  85. odoo/addons/dms/views/dms_file.xml +170 -191
  86. odoo/addons/dms/views/{tag.xml → dms_tag.xml} +50 -53
  87. odoo/addons/dms/views/menu.xml +52 -21
  88. odoo/addons/dms/views/res_config_settings.xml +31 -82
  89. odoo/addons/dms/views/storage.xml +7 -13
  90. odoo_addon_dms-17.0.1.0.0.2.dist-info/METADATA +257 -0
  91. {odoo_addon_dms-16.0.1.8.0.3.dist-info → odoo_addon_dms-17.0.1.0.0.2.dist-info}/RECORD +93 -93
  92. {odoo_addon_dms-16.0.1.8.0.3.dist-info → odoo_addon_dms-17.0.1.0.0.2.dist-info}/WHEEL +1 -1
  93. odoo_addon_dms-17.0.1.0.0.2.dist-info/top_level.txt +1 -0
  94. odoo/addons/dms/readme/CONFIGURE.rst +0 -40
  95. odoo/addons/dms/readme/CONTRIBUTORS.rst +0 -16
  96. odoo/addons/dms/readme/CREDITS.rst +0 -6
  97. odoo/addons/dms/readme/DESCRIPTION.rst +0 -6
  98. odoo/addons/dms/readme/INSTALL.rst +0 -9
  99. odoo/addons/dms/readme/ROADMAP.rst +0 -8
  100. odoo/addons/dms/readme/USAGE.rst +0 -8
  101. odoo/addons/dms/static/src/js/components/path/path.esm.js +0 -0
  102. odoo/addons/dms/static/src/js/dms_portal_tour.js +0 -57
  103. odoo/addons/dms/static/src/js/fields/path.js +0 -81
  104. odoo/addons/dms/static/src/js/views/fields/binary/preview_record.esm.js +0 -35
  105. odoo/addons/dms/static/src/js/views/many_drop_target.js +0 -98
  106. odoo/addons/dms/static/src/scss/variables.scss +0 -9
  107. odoo/addons/dms/static/src/xml/views.xml +0 -72
  108. odoo/addons/dms/template/assets.xml +0 -44
  109. odoo/addons/dms/template/onboarding.xml +0 -97
  110. odoo_addon_dms-16.0.1.8.0.3.dist-info/METADATA +0 -203
  111. odoo_addon_dms-16.0.1.8.0.3.dist-info/top_level.txt +0 -1
@@ -7,7 +7,7 @@ Document Management System
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:a10c01f78479eef862a899cce740cbb7facd00c51e11bca1fb6af9ad31c7ce32
10
+ !! source digest: sha256:531f01b97db7166c170f62f0f28861e7635913bc1f5dbdb04e20d7f9d15f855c
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,23 +17,26 @@ Document Management System
17
17
  :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18
18
  :alt: License: LGPL-3
19
19
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdms-lightgray.png?logo=github
20
- :target: https://github.com/OCA/dms/tree/16.0/dms
20
+ :target: https://github.com/OCA/dms/tree/17.0/dms
21
21
  :alt: OCA/dms
22
22
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
- :target: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms
23
+ :target: https://translation.odoo-community.org/projects/dms-17-0/dms-17-0-dms
24
24
  :alt: Translate me on Weblate
25
25
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26
- :target: https://runboat.odoo-community.org/builds?repo=OCA/dms&target_branch=16.0
26
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/dms&target_branch=17.0
27
27
  :alt: Try me on Runboat
28
28
 
29
29
  |badge1| |badge2| |badge3| |badge4| |badge5|
30
30
 
31
- DMS is a module for creating, managing and viewing document files directly
32
- within Odoo.
33
- This module is only the basis for an entire ecosystem of apps that extend and
34
- seamlessly integrate with the document management system.
31
+ DMS is a module for creating, managing and viewing document files
32
+ directly within Odoo. This module is only the basis for an entire
33
+ ecosystem of apps that extend and seamlessly integrate with the document
34
+ management system.
35
35
 
36
- This module adds portal functionality for directories and files for allowed users, both portal or internal users. You can get as well a tokenized link from a directory or a file for sharing it with any anonymous user.
36
+ This module adds portal functionality for directories and files for
37
+ allowed users, both portal or internal users. You can get as well a
38
+ tokenized link from a directory or a file for sharing it with any
39
+ anonymous user.
37
40
 
38
41
  **Table of contents**
39
42
 
@@ -44,82 +47,129 @@ Installation
44
47
  ============
45
48
 
46
49
  Preview
47
- ~~~~~~~
50
+ -------
48
51
 
49
- ``mail_preview_base`` is required for DMS but it is recommended to install all
50
- the other `mail_preview` modules from `social` OCA repository
51
- in order to improve the preview of files.
52
+ ``python-magic`` library is recommended to be installed for having whole
53
+ support to get proper file types and file preview.
52
54
 
53
- ``python-magic`` library is recommended to be installed for having whole support
54
- to get proper file types and file preview.
55
+ Configuration
56
+ =============
55
57
 
56
58
  Configuration
57
59
  =============
58
60
 
59
61
  To configure this module, you need to:
60
62
 
61
- #. Go to *Documents -> Configuration -> Storages*.
62
- #. Create a new document storage. You can choose between two options on `Save Type`:
63
- * `Database`: Store the files on the database as a field
64
- * `Attachment`: Store the files as attachments
65
- #. Next create an administrative access group. Go to *Configuration -> Access Groups*.
66
- * Create a new group, name it appropriately, and turn on all three permissions (Create, Write and Unlink - Read is implied and always enabled).
67
- * Add any other top-level administrative users to the group if needed (your user should already be there).
68
- * You can create other groups in here later for fine grained access control.
69
- #. Afterwards go to *Documents -> Directories*.
70
- #. Create a new directory, mark it as root and select the previously created setting.
71
- * Select the *Groups* tab and add your administrative group created above.
72
- #. On the Directory you can also add other access groups (created above) that will be able to:
73
- * read
74
- * create
75
- * write
76
- * delete
63
+ 1. Create a storage
64
+ -------------------
77
65
 
66
+ 1. Go to *Documents -> Configuration -> Storages*.
78
67
 
79
- Migration
80
- ~~~~~~~~~
68
+ 2. Create a new document storage. You can choose between three options
69
+ on ``Save Type``:
70
+
71
+ - ``Database``: Store the files on the database as a field
72
+ - ``Attachment``: Store the files as attachments
73
+ - ``File``: Store the files on the file system
74
+
75
+ 2. Create an access group
76
+ -------------------------
77
+
78
+ 1. Next, create an administrative access group. Go to *Configuration ->
79
+ Access Groups*.
80
+
81
+ - Create a new group, name it appropriately, and turn on all three
82
+ permissions (Create, Write and Unlink. Read is implied and always
83
+ enabled).
84
+ - Add any other top-level administrative users to the group if
85
+ needed (your user should already be there).
86
+ - You can create other groups in here later for fine-grained access
87
+ control.
88
+
89
+ 3. Create a directory
90
+ ---------------------
81
91
 
82
- If you need to modify the storage Save Type you might want to migrate the file data.
83
- In order to achieve it you need to:
92
+ 1. Afterward, go to *Documents -> Directories*.
84
93
 
85
- #. Go to *Documents -> Configuration -> Storage* and select the storage you want to modify
86
- #. Modify the save type
87
- #. Press the button `Migrate files` if you want to migrate all the files at once
88
- #. Press the button `Manual File Migration` in order to specify files one by one
94
+ 2. Create a new directory, mark it as root and select the previously
95
+ created setting.
89
96
 
90
- You can check all the files that still needs to be migrated from all storages
91
- and migrate them manually on *Documents -> Configuration -> Migration*
97
+ - Select the *Groups* tab and add your administrative group created
98
+ above. If your directory was already created before the group, you
99
+ can also add it in the access groups (*Configuration -> Access
100
+ Groups*).
92
101
 
102
+ 3. In the directory settings, you can also add other access groups
103
+ (created above) that will be able to:
104
+
105
+ - read
106
+ - create
107
+ - write
108
+ - delete
109
+
110
+ Migration
111
+ =========
112
+
113
+ If you need to modify the storage ``Save Type`` you might want to
114
+ migrate the file data. To achieve it, you need to:
115
+
116
+ 1. Go to *Documents -> Configuration -> Storage* and select the storage
117
+ you want to modify
118
+ 2. Modify the save type
119
+ 3. Press the button Migrate files if you want to migrate all the files
120
+ at once
121
+ 4. Press the button Manual File Migration to specify files one by one
122
+
123
+ You can check all the files that still need to be migrated from all
124
+ storages and migrate them manually on *Documents -> Configuration ->
125
+ Migration*
93
126
 
94
127
  File Wizard Selection
95
- ~~~~~~~~~~~~~~~~~~~~~
128
+ =====================
96
129
 
97
- There is an action called `action_dms_file_wizard_selector` to open a wizard to list files in kanban view.
98
- This can be used (example `dms_attachment_link` module) to add a button in kanban view with the action we need.
130
+ There is an action called ``action_dms_file_wizard_selector`` to open a
131
+ wizard to list files in kanban view. This can be used (example
132
+ dms_attachment_link module) to add a button in kanban view with the
133
+ action we need.
99
134
 
100
135
  Usage
101
136
  =====
102
137
 
103
138
  The best way to manage the documents is to switch to the Documents view.
104
- Existing documents can be managed there and new documents can be created.
139
+ Existing documents can be managed there and new documents can be
140
+ created.
105
141
 
106
142
  Portal functionality
107
- ~~~~~~~~~~~~~~~~~~~~
143
+ --------------------
108
144
 
109
- You can add any portal user to DMS access groups, and then allow that group in directories, so they will see in the portal such directories and their files.
110
- Another possibility is to click on "Share" button inside a directory or a file for obtaining a tokenized link for single access to that resource, no matter if logged or not.
145
+ You can add any portal user to DMS access groups, and then allow that
146
+ group in directories, so they will see in the portal such directories
147
+ and their files. Another possibility is to click on "Share" button
148
+ inside a directory or a file for obtaining a tokenized link for single
149
+ access to that resource, no matter if logged or not.
111
150
 
112
151
  Known issues / Roadmap
113
152
  ======================
114
153
 
115
- - Files preview in portal
116
- - Allow to download folder in portal and create zip file with all content
117
- - Save in cache own_root directories and update in every create/write/unlink function
118
- - Add a migration procedure for converting an storage to attachment one for populating existing records with attachments as folders
119
- - Add a link from attachment view in chatter to linked documents
120
- - If Inherit permissions from related record (the inherit_access_from_parent_record field from storage) is changed when directories already exist, inconsistencies may occur because groups defined in the directories and subdirectories will still exist, all groups in these directories should be removed before changing.
121
- - Since portal users can read ``dms.storage`` records, if your module extends this model to another storage backend that needs using secrets, remember to forbid access to the secrets fields by other means. It would be nice to be able to remove that rule at some point.
122
- - Searchpanel in files: Highlight items (shading) without records when filtering something (by name for example).
154
+ - Files preview in portal
155
+ - Allow to download folder in portal and create zip file with all
156
+ content
157
+ - Save in cache own_root directories and update in every
158
+ create/write/unlink function
159
+ - Add a migration procedure for converting an storage to attachment one
160
+ for populating existing records with attachments as folders
161
+ - Add a link from attachment view in chatter to linked documents
162
+ - If Inherit permissions from related record (the
163
+ inherit_access_from_parent_record field from storage) is changed when
164
+ directories already exist, inconsistencies may occur because groups
165
+ defined in the directories and subdirectories will still exist, all
166
+ groups in these directories should be removed before changing.
167
+ - Since portal users can read ``dms.storage`` records, if your module
168
+ extends this model to another storage backend that needs using
169
+ secrets, remember to forbid access to the secrets fields by other
170
+ means. It would be nice to be able to remove that rule at some point.
171
+ - Searchpanel in files: Highlight items (shading) without records when
172
+ filtering something (by name for example).
123
173
 
124
174
  Bug Tracker
125
175
  ===========
@@ -127,7 +177,7 @@ Bug Tracker
127
177
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/dms/issues>`_.
128
178
  In case of trouble, please check there if your issue has already been reported.
129
179
  If you spotted it first, help us to smash it by providing a detailed and welcomed
130
- `feedback <https://github.com/OCA/dms/issues/new?body=module:%20dms%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
180
+ `feedback <https://github.com/OCA/dms/issues/new?body=module:%20dms%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
131
181
 
132
182
  Do not contact contributors directly about support or help with technical issues.
133
183
 
@@ -135,43 +185,47 @@ Credits
135
185
  =======
136
186
 
137
187
  Authors
138
- ~~~~~~~
188
+ -------
139
189
 
140
190
  * MuK IT
141
191
  * Tecnativa
142
192
 
143
193
  Contributors
144
- ~~~~~~~~~~~~
194
+ ------------
145
195
 
146
- * Mathias Markl <mathias.markl@mukit.at>
147
- * Enric Tobella <etobella@creublanca.es>
148
- * Antoni Romera
149
- * Gelu Boros <gelu.boros@rgbconsulting.com>
196
+ - Mathias Markl <mathias.markl@mukit.at>
197
+ - Enric Tobella <etobella@creublanca.es>
198
+ - Antoni Romera
199
+ - Gelu Boros <gelu.boros@rgbconsulting.com>
200
+ - `Tecnativa <https://www.tecnativa.com>`__:
150
201
 
151
- * `Tecnativa <https://www.tecnativa.com>`_:
202
+ - Víctor Martínez
203
+ - Pedro M. Baeza
204
+ - Jairo Llopis
152
205
 
153
- * Víctor Martínez
154
- * Pedro M. Baeza
155
- * Jairo Llopis
206
+ - `Elego <https://www.elegosoft.com>`__:
156
207
 
157
- * `Elego <https://www.elegosoft.com>`_:
208
+ - Yu Weng <yweng@elegosoft.com>
209
+ - Philip Witte <phillip.witte@elegosoft.com>
210
+ - Khanh Bui <khanh.bui@mail.elegosoft.com>
158
211
 
159
- * Yu Weng <yweng@elegosoft.com>
160
- * Philip Witte <phillip.witte@elegosoft.com>
161
- * Khanh Bui <khanh.bui@mail.elegosoft.com>
212
+ - `Subteno <https://www.subteno.com>`__:
162
213
 
163
- Other credits
164
- ~~~~~~~~~~~~~
214
+ - Timothée Vannier <tva@subteno.com>
165
215
 
166
- The migration of this module from 15.0 to 16.0 was financially supported by `AgentERP <https://www.agenterp.com>`_
216
+ Other credits
217
+ -------------
167
218
 
168
219
  Some pictures are based on or inspired by:
169
220
 
170
- * `Roundicons <https://www.flaticon.com/authors/roundicons>`_
171
- * `Smashicons <https://www.flaticon.com/authors/smashicons>`_
221
+ - `Roundicons <https://www.flaticon.com/authors/roundicons>`__
222
+ - `Smashicons <https://www.flaticon.com/authors/smashicons>`__
223
+ - `EmojiOne <https://github.com/EmojiTwo/emojitwo>`__ : Portal DMS icon
224
+ - `GitHub Octicons <https://github.com/primer/octicons/>`__ : The main
225
+ DMS icon
172
226
 
173
227
  Maintainers
174
- ~~~~~~~~~~~
228
+ -----------
175
229
 
176
230
  This module is maintained by the OCA.
177
231
 
@@ -183,6 +237,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
183
237
  mission is to support the collaborative development of Odoo features and
184
238
  promote its widespread use.
185
239
 
186
- This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/16.0/dms>`_ project on GitHub.
240
+ This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/17.0/dms>`_ project on GitHub.
187
241
 
188
242
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -1,10 +1,11 @@
1
1
  # Copyright 2017-2019 MuK IT GmbH
2
+ # Copyright 2024 Subteno - Timothée Vannier (https://www.subteno.com).
2
3
  # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
3
4
 
4
5
  {
5
6
  "name": "Document Management System",
6
7
  "summary": """Document Management System for Odoo""",
7
- "version": "16.0.1.8.0",
8
+ "version": "17.0.1.0.0",
8
9
  "category": "Document Management",
9
10
  "license": "LGPL-3",
10
11
  "website": "https://github.com/OCA/dms",
@@ -12,39 +13,56 @@
12
13
  "depends": [
13
14
  "mail",
14
15
  "http_routing",
16
+ "onboarding",
15
17
  "portal",
16
18
  "base",
19
+ "web",
17
20
  ],
18
21
  "data": [
22
+ # Security
19
23
  "security/security.xml",
20
24
  "security/ir.model.access.csv",
25
+ # Actions
21
26
  "actions/file.xml",
22
- "template/onboarding.xml",
23
- "views/menu.xml",
24
- "views/tag.xml",
25
- "views/category.xml",
27
+ # Templates
28
+ "template/portal.xml",
29
+ # Data
30
+ "data/onboarding_data.xml",
31
+ # Views
32
+ "views/dms_tag.xml",
33
+ "views/dms_category.xml",
26
34
  "views/dms_file.xml",
27
- "views/directory.xml",
35
+ "views/dms_directory.xml",
28
36
  "views/storage.xml",
29
37
  "views/dms_access_groups_views.xml",
30
38
  "views/res_config_settings.xml",
31
- "views/dms_portal_templates.xml",
39
+ "views/menu.xml",
40
+ # Wizard
32
41
  "wizards/wizard_dms_file_move_views.xml",
33
42
  "wizards/wizard_dms_share_views.xml",
34
43
  ],
35
44
  "assets": {
36
- "mail.assets_messaging": [
37
- ("include", "mail.assets_core_messaging"),
38
- "dms/static/src/models/*.js",
39
- ],
40
45
  "web.assets_backend": [
41
- "dms/static/src/scss/*",
42
- "dms/static/src/js/fields/*",
46
+ # Style
47
+ "dms/static/src/scss/directory_kanban.scss",
48
+ "dms/static/src/scss/file_kanban.scss",
49
+ "dms/static/src/scss/dms_common.scss",
50
+ # JS
51
+ "dms/static/src/models/*.js",
52
+ "dms/static/src/js/fields/path_json/path_owl.esm.js",
53
+ "dms/static/src/js/fields/preview_binary/preview_record.esm.js",
43
54
  "dms/static/src/js/views/*.esm.js",
55
+ # XML
56
+ "dms/static/src/js/fields/path_json/path_owl.xml",
57
+ "dms/static/src/js/fields/preview_binary/preview_record.xml",
44
58
  "dms/static/src/js/views/*.xml",
45
- "dms/static/src/js/views/fields/binary/*",
46
59
  ],
47
- "web.assets_frontend": ["dms/static/src/js/dms_portal_tour.js"],
60
+ "web.assets_frontend": [
61
+ "dms/static/src/scss/portal.scss",
62
+ ],
63
+ "web.assets_tests": [
64
+ "dms/static/tests/tours/**/*",
65
+ ],
48
66
  },
49
67
  "demo": [
50
68
  "demo/res_users.xml",
@@ -55,6 +73,6 @@
55
73
  "demo/directory.xml",
56
74
  "demo/file.xml",
57
75
  ],
58
- "images": ["static/description/banner.png"],
76
+ "icon": "/dms/static/description/icon.png",
59
77
  "application": True,
60
78
  }
@@ -1,10 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8" ?>
2
2
  <!--
3
-
4
3
  Copyright 2017-2019 MuK IT GmbH
5
4
  License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
6
-
7
- -->
5
+ -->
8
6
  <odoo>
9
7
  <record id="action_dms_attachment_migrate" model="ir.actions.server">
10
8
  <field name="name">Migrate</field>
@@ -5,40 +5,6 @@ from odoo.http import request
5
5
 
6
6
 
7
7
  class OnboardingController(http.Controller):
8
- @http.route("/dms/document_onboarding/directory", auth="user", type="json")
9
- def document_onboarding_directory(self):
10
- company = request.env.user.company_id
11
- closed = company.documents_onboarding_state == "closed"
12
- check = request.env.user.has_group("dms.group_dms_manager")
13
- if check and not closed:
14
- return {
15
- "html": request.env["ir.qweb"]._render(
16
- request.env.ref("dms.document_onboarding_directory_panel").id,
17
- {
18
- "state": company.get_and_update_documents_onboarding_state(),
19
- "company": company,
20
- },
21
- )
22
- }
23
- return {}
24
-
25
- @http.route("/dms/document_onboarding/file", auth="user", type="json")
26
- def document_onboarding_file(self):
27
- company = request.env.user.company_id
28
- closed = company.documents_onboarding_state == "closed"
29
- check = request.env.user.has_group("dms.group_dms_manager")
30
- if check and not closed:
31
- return {
32
- "html": request.env["ir.qweb"]._render(
33
- request.env.ref("dms.document_onboarding_file_panel").id,
34
- {
35
- "state": company.get_and_update_documents_onboarding_state(),
36
- "company": company,
37
- },
38
- )
39
- }
40
- return {}
41
-
42
8
  @http.route("/config/dms.forbidden_extensions", type="json", auth="user")
43
9
  def forbidden_extensions(self, **_kwargs):
44
10
  params = request.env["ir.config_parameter"].sudo()