Skip to content

Commit 564fae4

Browse files
committed
[ADD] dms_import: Migration data from documents EE to dms CE
[IMP] dms_import: move pre_init_hook to post_init_hook [REF][FIX] dms_import: Use new syntax, avoid sql injection and fix group creation bug dms_import: also migrate achived data [REF] dms_import: avoid duplication by forcing tags, categories, and default group permissions [IMP] dms_import: improve performance, reduce batch size, and bypass heavy compute fields [FIX] dms_import: handle duplicate name [FIX] dms_import: standardize file names [IMP] dms_import: improve unique_name_new to avoid long name [FIX] dms_import: avoid check size when uploading files
1 parent 4386761 commit 564fae4

File tree

16 files changed

+1118
-0
lines changed

16 files changed

+1118
-0
lines changed

dms_import/README.rst

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
=================================
2+
Document Management System Import
3+
=================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:d26c6b062fc8f9eab8449f88f869f2da1d45e05f6332b2ca1db17948961c7ed0
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
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_import
21+
:alt: OCA/dms
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_import
24+
:alt: Translate me on Weblate
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
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
Use this module to migrate from the EE `documents*` modules to the OCA `dms*` modules.
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Bug Tracker
39+
===========
40+
41+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/dms/issues>`_.
42+
In case of trouble, please check there if your issue has already been reported.
43+
If you spotted it first, help us to smash it by providing a detailed and welcomed
44+
`feedback <https://github.com/OCA/dms/issues/new?body=module:%20dms_import%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
45+
46+
Do not contact contributors directly about support or help with technical issues.
47+
48+
Credits
49+
=======
50+
51+
Authors
52+
~~~~~~~
53+
54+
* Kencove
55+
56+
Contributors
57+
~~~~~~~~~~~~
58+
59+
- [Trobz](https://www.trobz.com):
60+
- Do Anh Duy <<duyda@trobz.com>>
61+
62+
Maintainers
63+
~~~~~~~~~~~
64+
65+
This module is maintained by the OCA.
66+
67+
.. image:: https://odoo-community.org/logo.png
68+
:alt: Odoo Community Association
69+
:target: https://odoo-community.org
70+
71+
OCA, or the Odoo Community Association, is a nonprofit organization whose
72+
mission is to support the collaborative development of Odoo features and
73+
promote its widespread use.
74+
75+
This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/16.0/dms_import>`_ project on GitHub.
76+
77+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

dms_import/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from . import models
2+
3+
from .hooks import post_init_hook

dms_import/__manifest__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2025 Kencove (https://www.kencove.com).
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Document Management System Import",
6+
"summary": """
7+
Import data from document EE to dms CE
8+
""",
9+
"version": "16.0.1.0.0",
10+
"license": "AGPL-3",
11+
"category": "Document Management",
12+
"author": "Kencove, Odoo Community Association (OCA)",
13+
"website": "https://github.com/OCA/dms",
14+
"depends": ["dms"],
15+
"external_dependencies": {"python": ["pathvalidate", "openupgradelib"]},
16+
"post_init_hook": "post_init_hook",
17+
}

0 commit comments

Comments
 (0)