Skip to content

Commit

Permalink
[IMP] dms: Add move (change directory) action from files
Browse files Browse the repository at this point in the history
TT48180
  • Loading branch information
victoralmau authored and tva-subteno-it committed Apr 26, 2024
1 parent 6974aaf commit d40b805
Show file tree
Hide file tree
Showing 12 changed files with 249 additions and 113 deletions.
1 change: 1 addition & 0 deletions dms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from . import controllers
from . import models
from . import wizards
3 changes: 3 additions & 0 deletions dms/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
"views/storage.xml",
"views/dms_access_groups_views.xml",
"views/res_config_settings.xml",
"views/menu.xml",
"views/dms_portal_templates.xml",
# Wizard
"wizards/wizard_dms_file_move_views.xml",
],
"assets": {
"mail.assets_messaging": [
Expand Down
56 changes: 56 additions & 0 deletions dms/i18n/dms.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-27 10:07+0000\n"
"PO-Revision-Date: 2024-03-27 10:07+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -72,6 +74,16 @@ msgid ""
" Download"
msgstr ""

#. module: dms
#: model_terms:ir.ui.view,arch_db:dms.wizard_dms_file_move_form_view
msgid ""
"<i class=\"fa fa-exclamation-triangle mr-3\" title=\"Warning\"/>\n"
" <b>ATTENTION:</b> Tips to keep in mind before moving files:<br/>\n"
" - This change cannot be undone.<br/>\n"
" - Remember that the permissions of the files are those of the folder that contains it, therefore, it is possible that when you change it, the permissions will also change.<br/>\n"
" Make this change at your own risk."
msgstr ""

#. module: dms
#: model_terms:ir.ui.view,arch_db:dms.view_dms_directory_kanban
#: model_terms:ir.ui.view,arch_db:dms.view_dms_file_kanban
Expand Down Expand Up @@ -408,6 +420,11 @@ msgstr ""
msgid "Archived Files"
msgstr ""

#. module: dms
#: model_terms:ir.ui.view,arch_db:dms.wizard_dms_file_move_form_view
msgid "Are you sure? All files will be moved."
msgstr ""

#. module: dms
#. odoo-python
#: code:addons/dms/models/storage.py:0
Expand Down Expand Up @@ -437,6 +454,7 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:dms.view_dms_directory_new_form
#: model_terms:ir.ui.view,arch_db:dms.view_dms_file_new_form
#: model_terms:ir.ui.view,arch_db:dms.view_dms_storage_new_form
#: model_terms:ir.ui.view,arch_db:dms.wizard_dms_file_move_form_view
msgid "Cancel"
msgstr ""

Expand Down Expand Up @@ -611,6 +629,7 @@ msgstr ""
#: model:ir.model.fields,field_description:dms.field_dms_directory__count_files_title
#: model:ir.model.fields,field_description:dms.field_dms_storage__count_storage_files
#: model:ir.model.fields,field_description:dms.field_dms_tag__count_files
#: model:ir.model.fields,field_description:dms.field_wizard_dms_file_move__count_files
msgid "Count Files"
msgstr ""

Expand Down Expand Up @@ -701,6 +720,7 @@ msgstr ""
#: model:ir.model.fields,field_description:dms.field_dms_file__create_uid
#: model:ir.model.fields,field_description:dms.field_dms_storage__create_uid
#: model:ir.model.fields,field_description:dms.field_dms_tag__create_uid
#: model:ir.model.fields,field_description:dms.field_wizard_dms_file_move__create_uid
msgid "Created by"
msgstr ""

Expand All @@ -711,6 +731,7 @@ msgstr ""
#: model:ir.model.fields,field_description:dms.field_dms_file__create_date
#: model:ir.model.fields,field_description:dms.field_dms_storage__create_date
#: model:ir.model.fields,field_description:dms.field_dms_tag__create_date
#: model:ir.model.fields,field_description:dms.field_wizard_dms_file_move__create_date
msgid "Created on"
msgstr ""

Expand Down Expand Up @@ -835,6 +856,7 @@ msgstr ""
#. module: dms
#: model:ir.model,name:dms.model_dms_directory
#: model:ir.model.fields,field_description:dms.field_dms_file__directory_id
#: model:ir.model.fields,field_description:dms.field_wizard_dms_file_move__directory_id
#: model_terms:ir.ui.view,arch_db:dms.onboarding_directory_step
msgid "Directory"
msgstr ""
Expand All @@ -846,6 +868,7 @@ msgstr ""
#: model:ir.model.fields,field_description:dms.field_dms_file__display_name
#: model:ir.model.fields,field_description:dms.field_dms_storage__display_name
#: model:ir.model.fields,field_description:dms.field_dms_tag__display_name
#: model:ir.model.fields,field_description:dms.field_wizard_dms_file_move__display_name
msgid "Display Name"
msgstr ""

Expand Down Expand Up @@ -1084,6 +1107,7 @@ msgstr ""
#: model:ir.model.fields,field_description:dms.field_dms_file__id
#: model:ir.model.fields,field_description:dms.field_dms_storage__id
#: model:ir.model.fields,field_description:dms.field_dms_tag__id
#: model:ir.model.fields,field_description:dms.field_wizard_dms_file_move__id
msgid "ID"
msgstr ""

Expand Down Expand Up @@ -1306,6 +1330,7 @@ msgstr ""
#: model:ir.model.fields,field_description:dms.field_dms_file____last_update
#: model:ir.model.fields,field_description:dms.field_dms_storage____last_update
#: model:ir.model.fields,field_description:dms.field_dms_tag____last_update
#: model:ir.model.fields,field_description:dms.field_wizard_dms_file_move____last_update
msgid "Last Modified on"
msgstr ""

Expand All @@ -1316,6 +1341,7 @@ msgstr ""
#: model:ir.model.fields,field_description:dms.field_dms_file__write_uid
#: model:ir.model.fields,field_description:dms.field_dms_storage__write_uid
#: model:ir.model.fields,field_description:dms.field_dms_tag__write_uid
#: model:ir.model.fields,field_description:dms.field_wizard_dms_file_move__write_uid
msgid "Last Updated by"
msgstr ""

Expand All @@ -1326,6 +1352,7 @@ msgstr ""
#: model:ir.model.fields,field_description:dms.field_dms_file__write_date
#: model:ir.model.fields,field_description:dms.field_dms_storage__write_date
#: model:ir.model.fields,field_description:dms.field_dms_tag__write_date
#: model:ir.model.fields,field_description:dms.field_wizard_dms_file_move__write_date
msgid "Last Updated on"
msgstr ""

Expand Down Expand Up @@ -1450,6 +1477,17 @@ msgstr ""
msgid "Modification Date"
msgstr ""

#. module: dms
#: model:ir.actions.server,name:dms.action_wizard_dms_file_move
#: model_terms:ir.ui.view,arch_db:dms.wizard_dms_file_move_form_view
msgid "Move"
msgstr ""

#. module: dms
#: model:ir.actions.act_window,name:dms.wizard_dms_file_move_act_window
msgid "Move files"
msgstr ""

#. module: dms
#: model:ir.model.fields,field_description:dms.field_dms_directory__my_activity_date_deadline
#: model:ir.model.fields,field_description:dms.field_dms_file__my_activity_date_deadline
Expand Down Expand Up @@ -1571,6 +1609,13 @@ msgstr ""
msgid "Only admin user"
msgstr ""

#. module: dms
#. odoo-python
#: code:addons/dms/models/dms_file.py:0
#, python-format
msgid "Only files in the same root directory can be moved."
msgstr ""

#. module: dms
#. odoo-python
#: code:addons/dms/models/storage.py:0
Expand Down Expand Up @@ -1745,6 +1790,7 @@ msgstr ""

#. module: dms
#: model:ir.model.fields,field_description:dms.field_dms_directory__root_directory_id
#: model:ir.model.fields,field_description:dms.field_dms_file__root_directory_id
msgid "Root Directory"
msgstr ""

Expand Down Expand Up @@ -2031,6 +2077,11 @@ msgstr ""
msgid "Total Subdirectories"
msgstr ""

#. module: dms
#: model_terms:ir.ui.view,arch_db:dms.wizard_dms_file_move_form_view
msgid "Total files"
msgstr ""

#. module: dms
#: model:dms.category,name:dms.category_04_demo
msgid "Traveling"
Expand Down Expand Up @@ -2120,6 +2171,11 @@ msgstr ""
msgid "Website communication history"
msgstr ""

#. module: dms
#: model:ir.model,name:dms.model_wizard_dms_file_move
msgid "Wizard Dms File Move"
msgstr ""

#. module: dms
#: model:ir.model.fields,field_description:dms.field_dms_access_group__perm_write
#: model:ir.model.fields,field_description:dms.field_dms_directory__permission_write
Expand Down
Loading

0 comments on commit d40b805

Please sign in to comment.