Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
105 changes: 105 additions & 0 deletions project_dms_field/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
==========================
Add dms field for projects
==========================

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

.. |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-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdms-lightgray.png?logo=github
:target: https://github.com/OCA/dms/tree/18.0/project_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-18-0/dms-18-0-project_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=18.0
:alt: Try me on Runboat

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

Add the Documents tab with the files in the project's form view.

**Table of contents**

.. contents::
:local:

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

1. Go to *Documents > Configuration > File templates* and create a new
record.
2. Set a storage, the project model, and the access groups you want.
3. Click on the *Documents* tab icon and a folder hierarchy will be
created.
4. You can set the hierarchy of directories, subdirectories, and files
you need; this hierarchy will be used as a base when creating a new
project.

Usage
=====

1. Go to the form view of an existing project and click on the
*Documents* tab icon. A hierarchy of folders and files linked to that
project will be created.
2. Create a new project. A hierarchy of folders and files linked to that
project will be created.

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:%20project_dms_field%0Aversion:%2018.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
-------

* Windweaver

Contributors
------------

- Keith Brandenburg

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.

.. |maintainer-windweaver828| image:: https://github.com/windweaver828.png?size=40px
:target: https://github.com/windweaver828
:alt: windweaver828

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-windweaver828|

This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/18.0/project_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 project_dms_field/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions project_dms_field/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2026 Windweaver
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

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

from odoo import models


class ProjectProject(models.Model):
_name = "project.project"
_inherit = ["project.project", "dms.field.mixin"]
3 changes: 3 additions & 0 deletions project_dms_field/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
6 changes: 6 additions & 0 deletions project_dms_field/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1. Go to *Documents > Configuration > File templates* and create a new
record.
2. Set a storage, the project model, and the access groups you want.
3. Click on the *Documents* tab icon and a folder hierarchy will be created.
4. You can set the hierarchy of directories, subdirectories, and files you need;
this hierarchy will be used as a base when creating a new project.
1 change: 1 addition & 0 deletions project_dms_field/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Keith Brandenburg
1 change: 1 addition & 0 deletions project_dms_field/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the Documents tab with the files in the project's form view.
4 changes: 4 additions & 0 deletions project_dms_field/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1. Go to the form view of an existing project and click on the *Documents* tab
icon. A hierarchy of folders and files linked to that project will be created.
2. Create a new project. A hierarchy of folders and files linked to that project
will be created.
Loading
Loading