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.
- odoo/addons/dms/README.rst +132 -78
- odoo/addons/dms/__manifest__.py +34 -16
- odoo/addons/dms/actions/file.xml +1 -3
- odoo/addons/dms/controllers/main.py +0 -34
- odoo/addons/dms/controllers/portal.py +178 -92
- odoo/addons/dms/data/onboarding_data.xml +77 -0
- odoo/addons/dms/demo/access_group.xml +3 -9
- odoo/addons/dms/i18n/de.po +13 -117
- odoo/addons/dms/i18n/dms.pot +137 -174
- odoo/addons/dms/i18n/es.po +15 -58
- odoo/addons/dms/i18n/fr.po +296 -450
- odoo/addons/dms/i18n/he_IL.po +13 -117
- odoo/addons/dms/i18n/it.po +15 -131
- odoo/addons/dms/i18n/nl.po +13 -117
- odoo/addons/dms/i18n/pt.po +13 -121
- odoo/addons/dms/i18n/pt_BR.po +28 -147
- odoo/addons/dms/i18n/ru.po +13 -117
- odoo/addons/dms/models/__init__.py +7 -1
- odoo/addons/dms/models/abstract_dms_mixin.py +1 -1
- odoo/addons/dms/models/access_groups.py +18 -11
- odoo/addons/dms/models/base.py +10 -2
- odoo/addons/dms/models/directory.py +46 -75
- odoo/addons/dms/models/{category.py → dms_category.py} +10 -42
- odoo/addons/dms/models/dms_file.py +125 -147
- odoo/addons/dms/models/dms_security_mixin.py +26 -22
- odoo/addons/dms/models/ir_attachment.py +0 -1
- odoo/addons/dms/models/ir_binary.py +19 -0
- odoo/addons/dms/models/mail_thread.py +2 -4
- odoo/addons/dms/models/mixins_thumbnail.py +13 -8
- odoo/addons/dms/models/onboarding_onboarding.py +16 -0
- odoo/addons/dms/models/onboarding_onboarding_step.py +50 -0
- odoo/addons/dms/models/res_company.py +22 -47
- odoo/addons/dms/models/res_config_settings.py +0 -1
- odoo/addons/dms/models/storage.py +4 -24
- odoo/addons/dms/models/tag.py +1 -1
- odoo/addons/dms/readme/CONFIGURE.md +59 -0
- odoo/addons/dms/readme/CONTRIBUTORS.md +14 -0
- odoo/addons/dms/readme/CREDITS.md +6 -0
- odoo/addons/dms/readme/DESCRIPTION.md +9 -0
- odoo/addons/dms/readme/INSTALL.md +4 -0
- odoo/addons/dms/readme/ROADMAP.md +19 -0
- odoo/addons/dms/readme/USAGE.md +11 -0
- odoo/addons/dms/security/security.xml +1 -0
- odoo/addons/dms/static/description/icon.png +0 -0
- odoo/addons/dms/static/description/icon.svg +4 -1
- odoo/addons/dms/static/description/index.html +133 -88
- odoo/addons/dms/static/description/portal_icon.svg +12 -0
- odoo/addons/dms/static/src/js/fields/{path_owl.esm.js → path_json/path_owl.esm.js} +22 -4
- odoo/addons/dms/static/src/js/fields/{path_owl.xml → path_json/path_owl.xml} +7 -4
- odoo/addons/dms/static/src/js/fields/preview_binary/preview_record.esm.js +47 -0
- odoo/addons/dms/static/src/js/{views/fields/binary → fields/preview_binary}/preview_record.xml +5 -4
- odoo/addons/dms/static/src/js/views/dms_file_upload.esm.js +155 -148
- odoo/addons/dms/static/src/js/views/file_kanban_controller.xml +0 -1
- odoo/addons/dms/static/src/js/views/file_kanban_record.esm.js +26 -27
- odoo/addons/dms/static/src/js/views/file_kanban_renderer.esm.js +1 -2
- odoo/addons/dms/static/src/js/views/file_kanban_renderer.xml +12 -16
- odoo/addons/dms/static/src/js/views/file_kanban_view.esm.js +11 -9
- odoo/addons/dms/static/src/js/views/file_list_controller.esm.js +1 -1
- odoo/addons/dms/static/src/js/views/file_list_renderer.xml +1 -7
- odoo/addons/dms/static/src/js/views/file_list_view.esm.js +11 -9
- odoo/addons/dms/static/src/js/views/search_panel.esm.js +9 -10
- odoo/addons/dms/static/src/models/attachment.esm.js +83 -82
- odoo/addons/dms/static/src/models/attachment_image.esm.js +30 -28
- odoo/addons/dms/static/src/models/attachment_viewer_viewable.esm.js +27 -25
- odoo/addons/dms/static/src/scss/directory_kanban.scss +28 -73
- odoo/addons/dms/static/src/scss/dms_common.scss +69 -0
- odoo/addons/dms/static/src/scss/file_kanban.scss +22 -34
- odoo/addons/dms/static/src/scss/portal.scss +12 -0
- odoo/addons/dms/static/tests/tours/dms_portal_tour.esm.js +46 -0
- odoo/addons/dms/{views/dms_portal_templates.xml → template/portal.xml} +13 -3
- odoo/addons/dms/tests/common.py +20 -4
- odoo/addons/dms/tests/data/mail01.eml +2 -2
- odoo/addons/dms/tests/data/mail02.eml +2 -2
- odoo/addons/dms/tests/test_benchmark.py +16 -21
- odoo/addons/dms/tests/test_directory.py +128 -40
- odoo/addons/dms/tests/test_file.py +112 -30
- odoo/addons/dms/tests/test_file_database.py +50 -24
- odoo/addons/dms/tests/test_portal.py +50 -37
- odoo/addons/dms/tests/test_storage_attachment.py +85 -63
- odoo/addons/dms/tests/test_storage_database.py +89 -35
- odoo/addons/dms/tools/file.py +63 -11
- odoo/addons/dms/views/dms_access_groups_views.xml +2 -17
- odoo/addons/dms/views/{category.xml → dms_category.xml} +4 -9
- odoo/addons/dms/views/{directory.xml → dms_directory.xml} +168 -176
- odoo/addons/dms/views/dms_file.xml +170 -191
- odoo/addons/dms/views/{tag.xml → dms_tag.xml} +50 -53
- odoo/addons/dms/views/menu.xml +52 -21
- odoo/addons/dms/views/res_config_settings.xml +31 -82
- odoo/addons/dms/views/storage.xml +7 -13
- odoo_addon_dms-17.0.1.0.0.2.dist-info/METADATA +257 -0
- {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
- {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
- odoo_addon_dms-17.0.1.0.0.2.dist-info/top_level.txt +1 -0
- odoo/addons/dms/readme/CONFIGURE.rst +0 -40
- odoo/addons/dms/readme/CONTRIBUTORS.rst +0 -16
- odoo/addons/dms/readme/CREDITS.rst +0 -6
- odoo/addons/dms/readme/DESCRIPTION.rst +0 -6
- odoo/addons/dms/readme/INSTALL.rst +0 -9
- odoo/addons/dms/readme/ROADMAP.rst +0 -8
- odoo/addons/dms/readme/USAGE.rst +0 -8
- odoo/addons/dms/static/src/js/components/path/path.esm.js +0 -0
- odoo/addons/dms/static/src/js/dms_portal_tour.js +0 -57
- odoo/addons/dms/static/src/js/fields/path.js +0 -81
- odoo/addons/dms/static/src/js/views/fields/binary/preview_record.esm.js +0 -35
- odoo/addons/dms/static/src/js/views/many_drop_target.js +0 -98
- odoo/addons/dms/static/src/scss/variables.scss +0 -9
- odoo/addons/dms/static/src/xml/views.xml +0 -72
- odoo/addons/dms/template/assets.xml +0 -44
- odoo/addons/dms/template/onboarding.xml +0 -97
- odoo_addon_dms-16.0.1.8.0.3.dist-info/METADATA +0 -203
- odoo_addon_dms-16.0.1.8.0.3.dist-info/top_level.txt +0 -1
odoo/addons/dms/README.rst
CHANGED
@@ -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:
|
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/
|
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-
|
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=
|
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
|
32
|
-
within Odoo.
|
33
|
-
|
34
|
-
|
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
|
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
|
-
``
|
50
|
-
|
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
|
-
|
54
|
-
|
55
|
+
Configuration
|
56
|
+
=============
|
55
57
|
|
56
58
|
Configuration
|
57
59
|
=============
|
58
60
|
|
59
61
|
To configure this module, you need to:
|
60
62
|
|
61
|
-
|
62
|
-
|
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
|
-
|
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
|
-
|
83
|
-
In order to achieve it you need to:
|
92
|
+
1. Afterward, go to *Documents -> Directories*.
|
84
93
|
|
85
|
-
|
86
|
-
|
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
|
-
|
91
|
-
|
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
|
98
|
-
|
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
|
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
|
110
|
-
|
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
|
-
-
|
116
|
-
-
|
117
|
-
|
118
|
-
-
|
119
|
-
|
120
|
-
-
|
121
|
-
|
122
|
-
-
|
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:%
|
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
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
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
|
-
|
202
|
+
- Víctor Martínez
|
203
|
+
- Pedro M. Baeza
|
204
|
+
- Jairo Llopis
|
152
205
|
|
153
|
-
|
154
|
-
* Pedro M. Baeza
|
155
|
-
* Jairo Llopis
|
206
|
+
- `Elego <https://www.elegosoft.com>`__:
|
156
207
|
|
157
|
-
|
208
|
+
- Yu Weng <yweng@elegosoft.com>
|
209
|
+
- Philip Witte <phillip.witte@elegosoft.com>
|
210
|
+
- Khanh Bui <khanh.bui@mail.elegosoft.com>
|
158
211
|
|
159
|
-
|
160
|
-
* Philip Witte <phillip.witte@elegosoft.com>
|
161
|
-
* Khanh Bui <khanh.bui@mail.elegosoft.com>
|
212
|
+
- `Subteno <https://www.subteno.com>`__:
|
162
213
|
|
163
|
-
|
164
|
-
~~~~~~~~~~~~~
|
214
|
+
- Timothée Vannier <tva@subteno.com>
|
165
215
|
|
166
|
-
|
216
|
+
Other credits
|
217
|
+
-------------
|
167
218
|
|
168
219
|
Some pictures are based on or inspired by:
|
169
220
|
|
170
|
-
|
171
|
-
|
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/
|
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.
|
odoo/addons/dms/__manifest__.py
CHANGED
@@ -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": "
|
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
|
-
|
23
|
-
"
|
24
|
-
|
25
|
-
"
|
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/
|
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/
|
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
|
-
|
42
|
-
"dms/static/src/
|
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": [
|
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
|
-
"
|
76
|
+
"icon": "/dms/static/description/icon.png",
|
59
77
|
"application": True,
|
60
78
|
}
|
odoo/addons/dms/actions/file.xml
CHANGED
@@ -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()
|