odoo-addon-dms 15.0.1.10.0.1__py3-none-any.whl → 15.0.1.10.1__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 +1 -1
- odoo/addons/dms/__manifest__.py +1 -1
- odoo/addons/dms/models/directory.py +38 -1
- odoo/addons/dms/models/dms_file.py +12 -0
- odoo/addons/dms/static/description/index.html +1 -1
- odoo/addons/dms/views/directory.xml +12 -12
- {odoo_addon_dms-15.0.1.10.0.1.dist-info → odoo_addon_dms-15.0.1.10.1.dist-info}/METADATA +2 -2
- {odoo_addon_dms-15.0.1.10.0.1.dist-info → odoo_addon_dms-15.0.1.10.1.dist-info}/RECORD +10 -10
- {odoo_addon_dms-15.0.1.10.0.1.dist-info → odoo_addon_dms-15.0.1.10.1.dist-info}/WHEEL +0 -0
- {odoo_addon_dms-15.0.1.10.0.1.dist-info → odoo_addon_dms-15.0.1.10.1.dist-info}/top_level.txt +0 -0
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:9b2ed7192b55f88d6d1dd2e86fd6335e89a438171ab2cdea6c4889207957c887
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
odoo/addons/dms/__manifest__.py
CHANGED
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
import ast
|
|
7
7
|
import base64
|
|
8
8
|
import logging
|
|
9
|
+
from ast import literal_eval
|
|
9
10
|
from collections import defaultdict
|
|
10
11
|
|
|
11
12
|
from odoo import _, api, fields, models, tools
|
|
12
13
|
from odoo.exceptions import UserError, ValidationError
|
|
13
|
-
from odoo.osv.expression import OR
|
|
14
|
+
from odoo.osv.expression import AND, OR
|
|
14
15
|
from odoo.tools import consteq, human_size
|
|
15
16
|
|
|
16
17
|
from odoo.addons.http_routing.models.ir_http import slugify
|
|
@@ -757,3 +758,39 @@ class DmsDirectory(models.Model):
|
|
|
757
758
|
return super()._search_panel_domain_image(
|
|
758
759
|
field_name=field_name, domain=domain, set_count=set_count, limit=limit
|
|
759
760
|
)
|
|
761
|
+
|
|
762
|
+
def action_dms_directories_all_directory(self):
|
|
763
|
+
self.ensure_one()
|
|
764
|
+
action = self.env["ir.actions.act_window"]._for_xml_id(
|
|
765
|
+
"dms.action_dms_directory"
|
|
766
|
+
)
|
|
767
|
+
domain = AND(
|
|
768
|
+
[
|
|
769
|
+
literal_eval(action["domain"].strip()),
|
|
770
|
+
[("parent_id", "child_of", self.id)],
|
|
771
|
+
]
|
|
772
|
+
)
|
|
773
|
+
action["domain"] = domain
|
|
774
|
+
action["context"] = dict(
|
|
775
|
+
self.env.context,
|
|
776
|
+
default_parent_id=self.id,
|
|
777
|
+
searchpanel_default_parent_id=self.id,
|
|
778
|
+
)
|
|
779
|
+
return action
|
|
780
|
+
|
|
781
|
+
def action_dms_files_all_directory(self):
|
|
782
|
+
self.ensure_one()
|
|
783
|
+
action = self.env["ir.actions.act_window"]._for_xml_id("dms.action_dms_file")
|
|
784
|
+
domain = AND(
|
|
785
|
+
[
|
|
786
|
+
literal_eval(action["domain"].strip()),
|
|
787
|
+
[("directory_id", "child_of", self.id)],
|
|
788
|
+
]
|
|
789
|
+
)
|
|
790
|
+
action["domain"] = domain
|
|
791
|
+
action["context"] = dict(
|
|
792
|
+
self.env.context,
|
|
793
|
+
default_directory_id=self.id,
|
|
794
|
+
searchpanel_default_directory_id=self.id,
|
|
795
|
+
)
|
|
796
|
+
return action
|
|
@@ -303,6 +303,18 @@ class File(models.Model):
|
|
|
303
303
|
(even if some folders have no files)."""
|
|
304
304
|
if field_name == "directory_id":
|
|
305
305
|
domain = [["is_hidden", "=", False]]
|
|
306
|
+
# If we pass by context something, we filter more about it we filter
|
|
307
|
+
# the directories of the files or we show all of them
|
|
308
|
+
if self.env.context.get("active_model", False) == "dms.directory":
|
|
309
|
+
active_id = self.env.context.get("active_id")
|
|
310
|
+
# para saber que directorios, buscamos las posibles carpetas que nos interesan
|
|
311
|
+
files = self.env["dms.file"].search(
|
|
312
|
+
[["directory_id", "child_of", active_id]]
|
|
313
|
+
)
|
|
314
|
+
all_directories = files.mapped("directory_id")
|
|
315
|
+
all_directories += files.mapped("directory_id.parent_id")
|
|
316
|
+
domain.append(["id", "in", all_directories.ids])
|
|
317
|
+
# Get all possible directories
|
|
306
318
|
comodel_records = (
|
|
307
319
|
self.env["dms.directory"]
|
|
308
320
|
.with_context(directory_short_name=True)
|
|
@@ -366,7 +366,7 @@ ul.auto-toc {
|
|
|
366
366
|
!! This file is generated by oca-gen-addon-readme !!
|
|
367
367
|
!! changes will be overwritten. !!
|
|
368
368
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
369
|
-
!! source digest: sha256:
|
|
369
|
+
!! source digest: sha256:9b2ed7192b55f88d6d1dd2e86fd6335e89a438171ab2cdea6c4889207957c887
|
|
370
370
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
371
371
|
<p><a class="reference external image-reference" 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 image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/dms/tree/15.0/dms"><img alt="OCA/dms" src="https://img.shields.io/badge/github-OCA%2Fdms-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/dms&target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
372
372
|
<p>DMS is a module for creating, managing and viewing document files directly
|
|
@@ -231,8 +231,8 @@
|
|
|
231
231
|
<h6 class="dropdown-header">Views
|
|
232
232
|
</h6>
|
|
233
233
|
<a
|
|
234
|
-
type="
|
|
235
|
-
name="
|
|
234
|
+
type="object"
|
|
235
|
+
name="action_dms_directories_all_directory"
|
|
236
236
|
role="menuitem"
|
|
237
237
|
class="dropdown-item"
|
|
238
238
|
>
|
|
@@ -240,8 +240,8 @@
|
|
|
240
240
|
Directories
|
|
241
241
|
</a>
|
|
242
242
|
<a
|
|
243
|
-
type="
|
|
244
|
-
name="
|
|
243
|
+
type="object"
|
|
244
|
+
name="action_dms_files_all_directory"
|
|
245
245
|
role="menuitem"
|
|
246
246
|
class="dropdown-item"
|
|
247
247
|
>
|
|
@@ -300,8 +300,8 @@
|
|
|
300
300
|
<div class="mk_directory_kanban_actions">
|
|
301
301
|
<div class="mk_directory_kanban_actions_wrapper">
|
|
302
302
|
<a
|
|
303
|
-
type="
|
|
304
|
-
name="
|
|
303
|
+
type="object"
|
|
304
|
+
name="action_dms_directories_all_directory"
|
|
305
305
|
role="button"
|
|
306
306
|
class="btn btn-sm btn-outline-primary mk_directory_kanban_directories"
|
|
307
307
|
t-att-title="record.count_directories_title.raw_value"
|
|
@@ -309,8 +309,8 @@
|
|
|
309
309
|
<i class="fa fa-lg fa-folder" />
|
|
310
310
|
</a>
|
|
311
311
|
<a
|
|
312
|
-
type="
|
|
313
|
-
name="
|
|
312
|
+
type="object"
|
|
313
|
+
name="action_dms_files_all_directory"
|
|
314
314
|
role="button"
|
|
315
315
|
class="btn btn-sm btn-outline-primary mk_directory_kanban_files"
|
|
316
316
|
t-att-title="record.count_files_title.raw_value"
|
|
@@ -403,8 +403,8 @@
|
|
|
403
403
|
<sheet>
|
|
404
404
|
<div class="oe_button_box" name="button_box">
|
|
405
405
|
<button
|
|
406
|
-
type="
|
|
407
|
-
name="
|
|
406
|
+
type="object"
|
|
407
|
+
name="action_dms_directories_all_directory"
|
|
408
408
|
class="oe_stat_button"
|
|
409
409
|
icon="fa-folder-open-o"
|
|
410
410
|
>
|
|
@@ -415,8 +415,8 @@
|
|
|
415
415
|
/>
|
|
416
416
|
</button>
|
|
417
417
|
<button
|
|
418
|
-
type="
|
|
419
|
-
name="
|
|
418
|
+
type="object"
|
|
419
|
+
name="action_dms_files_all_directory"
|
|
420
420
|
class="oe_stat_button"
|
|
421
421
|
icon="fa-file-text-o"
|
|
422
422
|
>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-dms
|
|
3
|
-
Version: 15.0.1.10.
|
|
3
|
+
Version: 15.0.1.10.1
|
|
4
4
|
Summary: Document Management System for Odoo
|
|
5
5
|
Home-page: https://github.com/OCA/dms
|
|
6
6
|
Author: MuK IT, Tecnativa, Odoo Community Association (OCA)
|
|
@@ -25,7 +25,7 @@ Document Management System
|
|
|
25
25
|
!! This file is generated by oca-gen-addon-readme !!
|
|
26
26
|
!! changes will be overwritten. !!
|
|
27
27
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
28
|
-
!! source digest: sha256:
|
|
28
|
+
!! source digest: sha256:9b2ed7192b55f88d6d1dd2e86fd6335e89a438171ab2cdea6c4889207957c887
|
|
29
29
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
30
30
|
|
|
31
31
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/dms/README.rst,sha256=
|
|
1
|
+
odoo/addons/dms/README.rst,sha256=whXImiyNwe_wwhBoRBwRKDaeXQ3C2kGe2mvi1_ZxPsA,7464
|
|
2
2
|
odoo/addons/dms/__init__.py,sha256=jQ-fltIs1ohXt7udDkkJwzh7ckauQW2rbmv1Wtg3SjQ,47
|
|
3
|
-
odoo/addons/dms/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/dms/__manifest__.py,sha256=ml6jTI_nPJQEq9YJ9GlpU1HLsvRLSWdvvxQmx6xj-Mo,2131
|
|
4
4
|
odoo/addons/dms/actions/file.xml,sha256=NlRIQoCbbDSaRmsumJP9dcrNtYpQji74hwhfi5TillE,524
|
|
5
5
|
odoo/addons/dms/controllers/__init__.py,sha256=akfNDwFGryweTYowOA3DbbP0zvLmQtCdihtGhYvsIPQ,40
|
|
6
6
|
odoo/addons/dms/controllers/main.py,sha256=3HvKTk8OiFPiqkKN952Ozy-9NmtpLnaYsguL-VSmicY,1902
|
|
@@ -25,8 +25,8 @@ odoo/addons/dms/models/abstract_dms_mixin.py,sha256=1cKd4uJE9MCop4GYaHLwpDyvLaLL
|
|
|
25
25
|
odoo/addons/dms/models/access_groups.py,sha256=nwIRYs48rG4Gc1M65aYcNtzUDljTa0KSCyUsHPxB8ig,5482
|
|
26
26
|
odoo/addons/dms/models/base.py,sha256=h6hYw7C_OwbP9xih1Cw6v0lOWypEk1pocc0q2gLHaYA,599
|
|
27
27
|
odoo/addons/dms/models/category.py,sha256=goe3tZbwDXtlxrwGB0_sGMJW7RkJh3MtTBe4YvYokbI,4110
|
|
28
|
-
odoo/addons/dms/models/directory.py,sha256=
|
|
29
|
-
odoo/addons/dms/models/dms_file.py,sha256=
|
|
28
|
+
odoo/addons/dms/models/directory.py,sha256=h6t9W9WqrZQkRXU8ArLORwzix5gWmg8UWTZGHDC2rsA,28675
|
|
29
|
+
odoo/addons/dms/models/dms_file.py,sha256=o3RU3J8bsWc-VTOfc0n84_KgF96zlSMDA0GvtZLpdN8,23972
|
|
30
30
|
odoo/addons/dms/models/dms_security_mixin.py,sha256=GwanqRbJfFYgQhQwvp17f6V1AVzXktjGm_xDRpF6h0w,9703
|
|
31
31
|
odoo/addons/dms/models/ir_attachment.py,sha256=-AwkedqL2cgPZ794O31UIMvchrf_a9TPVE1rEb--CXQ,3248
|
|
32
32
|
odoo/addons/dms/models/mail_thread.py,sha256=ccAn2MHONCncjsJewBrLqMVBl6tmn2kezyJVJq2utVk,583
|
|
@@ -46,7 +46,7 @@ odoo/addons/dms/security/ir.model.access.csv,sha256=y7YrbLylNaNrKJ3w-aG47mz_GP5c
|
|
|
46
46
|
odoo/addons/dms/security/security.xml,sha256=plasjSwS2w5GK07BvW9obXNOpPgeBLKeEkUJ6Wpc6nA,9085
|
|
47
47
|
odoo/addons/dms/static/description/icon.png,sha256=8xwcyAfhzMOu_xBinu4KwZsvmqUj6X5aF2LUQvvwdc4,7197
|
|
48
48
|
odoo/addons/dms/static/description/icon.svg,sha256=cICSzGzl0Z00q7m0yhriujt2ip5_v4ymxAMTGzolxsc,8025
|
|
49
|
-
odoo/addons/dms/static/description/index.html,sha256=
|
|
49
|
+
odoo/addons/dms/static/description/index.html,sha256=ypwFAAS3Dvh8vgQwxKMO2IMRKwmhqYC3m7TDWwFrzjU,19702
|
|
50
50
|
odoo/addons/dms/static/icons/file_ai.svg,sha256=HeCXVJivVnn6jjj__5WJiLfZv4mrmAamPFek0CwozCc,3343
|
|
51
51
|
odoo/addons/dms/static/icons/file_aj.svg,sha256=mUbfvaV5_m3zJ3zZKldBbaFz4AZNQNecSZ1W_JCZeE4,3063
|
|
52
52
|
odoo/addons/dms/static/icons/file_avi.svg,sha256=Pf78IrO6gGsg3aUVguOu6osDwLYz5ceIOLMbTRpya5s,1862
|
|
@@ -180,7 +180,7 @@ odoo/addons/dms/tests/data/mail02.eml,sha256=QDbZu4Xne3-VgntqqDBviBcSB4Y8Cgn_I8O
|
|
|
180
180
|
odoo/addons/dms/tools/__init__.py,sha256=X0El9WW-bmLhnUpcS_csCs0TR1RcxaQg36Dy8wyg_vI,19
|
|
181
181
|
odoo/addons/dms/tools/file.py,sha256=NYgdhsu1qdcLfMInmzhMs-PzDKmFm3wuo9kx610mSJs,1488
|
|
182
182
|
odoo/addons/dms/views/category.xml,sha256=fjes6BqnZpcB8IJhZliZP4C7HqjJHlRVqRo4mvlEt38,4434
|
|
183
|
-
odoo/addons/dms/views/directory.xml,sha256=
|
|
183
|
+
odoo/addons/dms/views/directory.xml,sha256=27qJNzjRSneFD5CrvpVwUel1gsPQeZsBdAG1VeLoX9U,34662
|
|
184
184
|
odoo/addons/dms/views/dms_access_groups_views.xml,sha256=vVeq7iGl7YfT1GKVGsulwOdPc6z3xS51hsRXfR2hR7w,5427
|
|
185
185
|
odoo/addons/dms/views/dms_file.xml,sha256=BXqTy-lDDCoWw5Z_u-mHNorQHFSm09tcJ_FoVbctUZM,31429
|
|
186
186
|
odoo/addons/dms/views/dms_portal_templates.xml,sha256=piujeenSeFNfeQzME_wphQ16Heg2AFmWtBnLO_yv3Z0,5638
|
|
@@ -188,7 +188,7 @@ odoo/addons/dms/views/menu.xml,sha256=YJxLfNpa7HqM5rj09kXGUeernJp9sSTA_mDICKvIs9
|
|
|
188
188
|
odoo/addons/dms/views/res_config_settings.xml,sha256=TMRNYnFW1U5Az5hqxIbkqIiaRaIzN7iGZO0M0TMu-Qk,5175
|
|
189
189
|
odoo/addons/dms/views/storage.xml,sha256=RCspiPEBUSNoR0NC3X9LD1BqmYWPIoq3poQMjcI62vg,10454
|
|
190
190
|
odoo/addons/dms/views/tag.xml,sha256=A1-WfRlN5TumsEdIEUwx7G2RpX7iHV37ztKxGABLvi0,7186
|
|
191
|
-
odoo_addon_dms-15.0.1.10.
|
|
192
|
-
odoo_addon_dms-15.0.1.10.
|
|
193
|
-
odoo_addon_dms-15.0.1.10.
|
|
194
|
-
odoo_addon_dms-15.0.1.10.
|
|
191
|
+
odoo_addon_dms-15.0.1.10.1.dist-info/METADATA,sha256=kwbQ64jD84T6_G1L_6dJJfw6Mr7JhuibQpP1fTOX-lc,8129
|
|
192
|
+
odoo_addon_dms-15.0.1.10.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
193
|
+
odoo_addon_dms-15.0.1.10.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
194
|
+
odoo_addon_dms-15.0.1.10.1.dist-info/RECORD,,
|
|
File without changes
|
{odoo_addon_dms-15.0.1.10.0.1.dist-info → odoo_addon_dms-15.0.1.10.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|