Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] dms_field: Migration to 16.0 #339

Merged
merged 53 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
405a3a0
[12.0][ADD] dms_field: New view
Aug 10, 2020
88361e2
[IMP] dms_field: create dms records
etobella Aug 25, 2020
a0d891a
[IMP] dms_field: Allow to set multiple models on storage & tests
etobella Oct 7, 2020
512dedf
[FIX] dms_field: Change sequence value to prevent appear first in dms…
victoralmau Feb 18, 2021
14108f5
[FIX] dms_field: Prevent dupplicate model_ids field in storage view
victoralmau Apr 14, 2021
a9d4b02
[FIX] improve some queries
Jun 10, 2021
5cf9edc
Added translation using Weblate (French)
nicolas-burel Jul 15, 2021
a79414f
[MIG] dms_field: Migration to 13.0
albariera Aug 30, 2021
eaceead
[MIG] dms_field: Migration to 14.0
olgamarcocb Jan 3, 2022
a4de2bc
[MIG] dms_field: Migration to 15.0
olgamarcocb May 11, 2022
6c6665d
[RFC] dms_field: change license from agpl to lgpl
marcelsavegnago Apr 16, 2022
5245d71
[IMP] dms_field: Remove unnecessary code, improve test coverage
etobella Aug 30, 2022
f190693
[UPD] Update dms_field.pot
Aug 30, 2022
b595afe
[UPD] README.rst
OCA-git-bot Aug 30, 2022
80dce1a
Added translation using Weblate (Spanish)
Ivorra78 Jul 28, 2023
bb0634f
Translated using Weblate (Spanish)
Ivorra78 Jul 28, 2023
7b683b5
[UPD] README.rst
OCA-git-bot Sep 3, 2023
9e66feb
Added translation using Weblate (Italian)
mymage Sep 28, 2023
23f0945
Update translation files
weblate Oct 9, 2023
8bd4984
Translated using Weblate (Italian)
mymage Oct 11, 2023
801f9c4
Translated using Weblate (Italian)
mymage Oct 12, 2023
5b7b970
Translated using Weblate (Italian)
mymage Oct 12, 2023
1ad6d26
Translated using Weblate (Italian)
francesco-ooops Oct 13, 2023
a34cd20
[FIX] dms_field: Use new field
etobella Oct 25, 2023
69d223a
[BOT] post-merge updates
OCA-git-bot Oct 25, 2023
49f9d8b
[UPD] Update dms_field.pot
Oct 28, 2023
53275b9
Update translation files
weblate Oct 29, 2023
dda4bf3
Translated using Weblate (Italian)
mymage Dec 1, 2023
f7e7707
[FIX] dms_field: Opening a directory using the right click open action
Zodk2 May 28, 2023
c1fbf1d
[BOT] post-merge updates
OCA-git-bot Jan 18, 2024
8399ece
[UPD] Update dms_field.pot
Feb 7, 2024
9566f1c
Update translation files
weblate Feb 7, 2024
0ca89c9
[IMP] dms_field: Misc changes
victoralmau Jan 19, 2024
7ef8d06
[UPD] Update dms_field.pot
Feb 9, 2024
1c32835
[BOT] post-merge updates
OCA-git-bot Feb 9, 2024
f651f90
Update translation files
weblate Feb 9, 2024
d5acc25
[IMP] dms_field: Disable multiple selection not currently supported (…
victoralmau Feb 12, 2024
2842547
[BOT] post-merge updates
OCA-git-bot Feb 15, 2024
dc82616
[IMP] dms_field: Correctly sort the records (directories and files) i…
victoralmau Mar 6, 2024
0ab1343
[BOT] post-merge updates
OCA-git-bot Mar 7, 2024
fdfa409
[IMP] dms_field: Add support to drag & drop
CarlosRoca13 Mar 8, 2024
7273b68
[UPD] Update dms_field.pot
Mar 8, 2024
692fd24
Update translation files
weblate Mar 8, 2024
0a89321
[IMP] dms_field: Open all directories at first charge but not set ope…
CarlosRoca13 Mar 11, 2024
940ccf6
[BOT] post-merge updates
OCA-git-bot Mar 14, 2024
87a8731
Translated using Weblate (Spanish)
Ivorra78 Mar 23, 2024
86ab69f
[FIX] dms_field: Keep dms active when changing view
CarlosRoca13 Mar 26, 2024
fc210c1
[BOT] post-merge updates
OCA-git-bot Mar 26, 2024
f867d97
[IMP] dms_field: pre-commit stuff
CarlosRoca13 Mar 27, 2024
86cce16
[MIG] dms_field: Migration to 16.0
CarlosRoca13 Apr 16, 2024
36a2b0b
[IMP] dms_field: Add Parent directory option to templates
victoralmau Apr 16, 2024
29971c4
[IMP] dms_field: Add model_ref to access groups to avoid possible err…
victoralmau Mar 27, 2024
0393143
[FIX] dms_field: Avoid auto-generate multiple access groups + Refacto…
victoralmau Jun 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions dms_field/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
=========
DMS Field
=========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:32b5522bce9f7a8e1a758183d74db8c1775e5b42d9ceef41a55724d1a4e62681
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdms-lightgray.png?logo=github
:target: https://github.com/OCA/dms/tree/16.0/dms_field
:alt: OCA/dms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms_field
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/dms&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This addon creates a new kind of view and allows to define a folder
related to a record.

**Table of contents**

.. contents::
:local:

Configuration
=============

To use the embedded view in any module, the module must inherit from the mixin
dms.field.mixin (You have an example with res.partner in this module).

Once this is done, in the form view of the model we will have to add the following:

.. code-block:: xml

<field name="dms_directory_ids" mode="dms_list" />

In addition, it will be necessary to create an Embedded DMS template for this model.

#. *Go to Documents > Configuration > Embedded DMS templates* and create a new record.
#. Set a storage, a model (res.partner for example) and the access groups you want.
#. You can also use expressions in "Directory format name", for example: {{object.name}}
#. Click on the "Documents" tab icon and a folder hierarchy will be created.
#. You can set here the hierarchy of directories, subdirectories and files you need, this hierarchy will be used as a base when creating a new record (res.partner for example).

Usage
=====

#. Go to the form view of an existing partner and click on the "DMS" tab icon, a hierarchy of
folders and files linked to that record will be created.
#. Create a new partner. A hierarchy of folders and files linked to that record will be created.


Known issues / Roadmap
======================

- Add drag & drop compatibility to the dms_tree mode
- Multiple selection support (e.g. cut several files and paste to another folder).

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/dms/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/dms/issues/new?body=module:%20dms_field%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Creu Blanca

Contributors
~~~~~~~~~~~~

* Enric Tobella <[email protected]>
* Jaime Arroyo <[email protected]>

* `Tecnativa <https://www.tecnativa.com>`_:

* Víctor Martínez
* Carlos Roca

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/16.0/dms_field>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions dms_field/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
33 changes: 33 additions & 0 deletions dms_field/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2020 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "DMS Field",
"summary": """
Create DMS View and allow to use them inside a record""",
"version": "16.0.1.0.0",
"license": "LGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/dms",
"depends": ["dms"],
"data": [
"views/dms_access_group_views.xml",
"views/dms_directory.xml",
"views/dms_field_template_views.xml",
"views/dms_storage.xml",
"security/ir.model.access.csv",
"security/security.xml",
],
"assets": {
"web.assets_backend": [
"dms_field/static/src/**/*",
("remove", "dms_field/static/src/views/fields/x2many/x2many_field.xml"),
(
"after",
"/web/static/src/views/fields/x2many/x2many_field.xml",
"dms_field/static/src/views/fields/x2many/x2many_field.xml",
),
],
},
"demo": ["demo/partner_dms.xml"],
}
19 changes: 19 additions & 0 deletions dms_field/demo/partner_dms.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<notebook position="inside">
<page
name="dms"
string="DMS"
attrs="{'invisible': [('id', '=', False)]}"
>
<field name="dms_directory_ids" mode="dms_list" />
</page>
</notebook>
</field>
</record>
</odoo>
Loading
Loading