Skip to content

Commit 3874313

Browse files
committed
[ADD] project_dms_field: add DMS field for projects
1 parent b5c4821 commit 3874313

15 files changed

Lines changed: 723 additions & 0 deletions

File tree

project_dms_field/README.rst

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
==========================
2+
Add dms field for projects
3+
==========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:754aa30c6561a07d9cfe78c64ae150df8da9e6a28fd0bbe4ebc2f8f911582836
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/18.0/project_dms_field
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-18-0/dms-18-0-project_dms_field
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=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
Add the Documents tab with the files in the project's form view.
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Configuration
39+
=============
40+
41+
1. Go to *Documents > Configuration > File templates* and create a new
42+
record.
43+
2. Set a storage, the project model, and the access groups you want.
44+
3. Click on the *Documents* tab icon and a folder hierarchy will be
45+
created.
46+
4. You can set the hierarchy of directories, subdirectories, and files
47+
you need; this hierarchy will be used as a base when creating a new
48+
project.
49+
50+
Usage
51+
=====
52+
53+
1. Go to the form view of an existing project and click on the
54+
*Documents* tab icon. A hierarchy of folders and files linked to that
55+
project will be created.
56+
2. Create a new project. A hierarchy of folders and files linked to that
57+
project will be created.
58+
59+
Bug Tracker
60+
===========
61+
62+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/dms/issues>`_.
63+
In case of trouble, please check there if your issue has already been reported.
64+
If you spotted it first, help us to smash it by providing a detailed and welcomed
65+
`feedback <https://github.com/OCA/dms/issues/new?body=module:%20project_dms_field%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
66+
67+
Do not contact contributors directly about support or help with technical issues.
68+
69+
Credits
70+
=======
71+
72+
Authors
73+
-------
74+
75+
* Windweaver
76+
77+
Contributors
78+
------------
79+
80+
- Keith Brandenburg
81+
82+
Maintainers
83+
-----------
84+
85+
This module is maintained by the OCA.
86+
87+
.. image:: https://odoo-community.org/logo.png
88+
:alt: Odoo Community Association
89+
:target: https://odoo-community.org
90+
91+
OCA, or the Odoo Community Association, is a nonprofit organization whose
92+
mission is to support the collaborative development of Odoo features and
93+
promote its widespread use.
94+
95+
.. |maintainer-windweaver828| image:: https://github.com/windweaver828.png?size=40px
96+
:target: https://github.com/windweaver828
97+
:alt: windweaver828
98+
99+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
100+
101+
|maintainer-windweaver828|
102+
103+
This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/18.0/project_dms_field>`_ project on GitHub.
104+
105+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

project_dms_field/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

project_dms_field/__manifest__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2026 Windweaver
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Add dms field for projects",
6+
"version": "18.0.1.0.0",
7+
"category": "Project",
8+
"website": "https://github.com/OCA/dms",
9+
"author": "Windweaver, Odoo Community Association (OCA)",
10+
"license": "AGPL-3",
11+
"depends": ["project", "dms_field"],
12+
"installable": True,
13+
"data": ["views/project_project_views.xml"],
14+
"demo": ["demo/dms_data.xml"],
15+
"maintainers": ["windweaver828"],
16+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<odoo>
3+
<record id="read_access_project_group" model="dms.access.group">
4+
<field name="name">Everyone for Project DMS</field>
5+
<field name="group_ids" eval="[(4, ref('project.group_project_user'))]" />
6+
<field name="perm_create" eval="True" />
7+
<field name="perm_write" eval="True" />
8+
<field name="perm_unlink" eval="True" />
9+
</record>
10+
<record id="field_template_project" model="dms.field.template">
11+
<field name="name">Project</field>
12+
<field name="storage_id" ref="dms.storage_demo" />
13+
<field name="model_id" ref="project.model_project_project" />
14+
<field name="user_field_id" ref="project.field_project_project__user_id" />
15+
<field name="group_ids" eval="[(4, ref('read_access_project_group'))]" />
16+
</record>
17+
</odoo>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import project_project
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright 2026 Windweaver
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from odoo import models
5+
6+
7+
class ProjectProject(models.Model):
8+
_name = "project.project"
9+
_inherit = ["project.project", "dms.field.mixin"]

project_dms_field/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
1. Go to *Documents > Configuration > File templates* and create a new
2+
record.
3+
2. Set a storage, the project model, and the access groups you want.
4+
3. Click on the *Documents* tab icon and a folder hierarchy will be created.
5+
4. You can set the hierarchy of directories, subdirectories, and files you need;
6+
this hierarchy will be used as a base when creating a new project.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Keith Brandenburg
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add the Documents tab with the files in the project's form view.

0 commit comments

Comments
 (0)