Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
107 changes: 107 additions & 0 deletions hr_dms_field/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
===========================
Add dms field for employees
===========================

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

.. |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/hr_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-hr_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 employee'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, a model (hr.employee) and the access groups you want.
3. Click on the "Documents" tab icon and a folder hierarchy will be
created.
4. 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 employee and click on the
"Documents" tab icon, a hierarchy of folders and files linked to that
record will be created. #. Create a new employee. A hierarchy of folders
and files linked to that record 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:%20hr_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
-------

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com>`__:

- Víctor Martínez
- Pedro M. Baeza

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-victoralmau| image:: https://github.com/victoralmau.png?size=40px
:target: https://github.com/victoralmau
:alt: victoralmau

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

|maintainer-victoralmau|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions hr_dms_field/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
24 changes: 24 additions & 0 deletions hr_dms_field/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2024 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Add dms field for employees",
"version": "19.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/dms",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["hr", "dms_field"],
"installable": True,
"data": [
"security/security.xml",
"views/hr_employee_view.xml",
"views/res_config_settings_view.xml",
],
"demo": ["demo/dms_data.xml"],
"assets": {
"web.assets_backend": [
"hr_dms_field/static/src/js/**/*",
],
},
"maintainers": ["victoralmau"],
}
21 changes: 21 additions & 0 deletions hr_dms_field/demo/dms_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="read_access_hr_employee_group" model="dms.access.group">
<field name="name">Everyone for Employee DMS</field>
<field name="group_ids" eval="[(4, ref('hr.group_hr_user'))]" />
<field name="perm_create" eval="True" />
<field name="perm_write" eval="True" />
<field name="perm_unlink" eval="True" />
</record>
<record id="field_template_employee" model="dms.field.template">
<field name="name">Employee</field>
<field name="storage_id" ref="dms.storage_demo" />
<field name="model_id" ref="hr.model_hr_employee" />
<field name="user_field_id" ref="hr.field_hr_employee__user_id" />
<field name="group_ids" eval="[(4, ref('read_access_hr_employee_group'))]" />
<!-- We need to define a different directory name because the existing partner
template will have caused a partner with the same name to be created when the
employee was created. !-->
<field name="directory_format_name">{{object.display_name}} (employee)</field>
</record>
</odoo>
67 changes: 67 additions & 0 deletions hr_dms_field/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_dms_field
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"

#. module: hr_dms_field
#: model_terms:ir.ui.view,arch_db:hr_dms_field.res_config_settings_view_form
msgid "Allow employees to access their DMS Documents."
msgstr ""

#. module: hr_dms_field
#: model:ir.model,name:hr_dms_field.model_hr_employee_base
msgid "Basic Employee"
msgstr ""

#. module: hr_dms_field
#: model:ir.model,name:hr_dms_field.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: hr_dms_field
#: model:ir.model.fields,field_description:hr_dms_field.field_hr_employee_base__dms_directory_ids
msgid "DMS Directories"
msgstr ""

#. module: hr_dms_field
#: model:res.groups,name:hr_dms_field.group_hr_public_dms
msgid "DMS Is accessible publicly on employee profile"
msgstr ""

#. module: hr_dms_field
#: model_terms:ir.ui.view,arch_db:hr_dms_field.hr_employee_public_view_form
#: model_terms:ir.ui.view,arch_db:hr_dms_field.view_employee_form
msgid "Documents"
msgstr ""

#. module: hr_dms_field
#: model:dms.access.group,name:hr_dms_field.read_access_hr_employee_group
msgid "Everyone for Employee DMS"
msgstr ""

#. module: hr_dms_field
#: model:ir.model.fields,field_description:hr_dms_field.field_hr_employee_public__is_logged
msgid "Is Logged"
msgstr ""

#. module: hr_dms_field
#: model:ir.model,name:hr_dms_field.model_hr_employee_public
msgid "Public Employee"
msgstr ""

#. module: hr_dms_field
#: model:ir.model.fields,field_description:hr_dms_field.field_res_config_settings__group_hr_public_dms
msgid "Show DMS Documents to logged employees"
msgstr ""
69 changes: 69 additions & 0 deletions hr_dms_field/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_dms_field
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-07 16:03+0000\n"
"PO-Revision-Date: 2026-04-22 14:45+0000\n"
"Last-Translator: Ed-Spain <eduamoros@gmail.com>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.15.2\n"

#. module: hr_dms_field
#: model_terms:ir.ui.view,arch_db:hr_dms_field.res_config_settings_view_form
msgid "Allow employees to access their DMS Documents."
msgstr "Permitir a los empleados acceder a sus Documentos DMS."

#. module: hr_dms_field
#: model:ir.model,name:hr_dms_field.model_hr_employee_base
msgid "Basic Employee"
msgstr "Empleado Básico"

#. module: hr_dms_field
#: model:ir.model,name:hr_dms_field.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: hr_dms_field
#: model:ir.model.fields,field_description:hr_dms_field.field_hr_employee_base__dms_directory_ids
msgid "DMS Directories"
msgstr "Directorios DMS"

#. module: hr_dms_field
#: model:res.groups,name:hr_dms_field.group_hr_public_dms
msgid "DMS Is accessible publicly on employee profile"
msgstr "DMS es accesible públicamente en el perfil del empleado"

#. module: hr_dms_field
#: model_terms:ir.ui.view,arch_db:hr_dms_field.hr_employee_public_view_form
#: model_terms:ir.ui.view,arch_db:hr_dms_field.view_employee_form
msgid "Documents"
msgstr "Documentos"

#. module: hr_dms_field
#: model:dms.access.group,name:hr_dms_field.read_access_hr_employee_group
msgid "Everyone for Employee DMS"
msgstr "Todos para empleados DMS"

#. module: hr_dms_field
#: model:ir.model.fields,field_description:hr_dms_field.field_hr_employee_public__is_logged
msgid "Is Logged"
msgstr "Está registrado/a"

#. module: hr_dms_field
#: model:ir.model,name:hr_dms_field.model_hr_employee_public
msgid "Public Employee"
msgstr "Empleado Público"

#. module: hr_dms_field
#: model:ir.model.fields,field_description:hr_dms_field.field_res_config_settings__group_hr_public_dms
msgid "Show DMS Documents to logged employees"
msgstr "Mostrar documentos DMS a las empleados logeados"
65 changes: 65 additions & 0 deletions hr_dms_field/i18n/hr_dms_field.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_dms_field
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: hr_dms_field
#: model_terms:ir.ui.view,arch_db:hr_dms_field.res_config_settings_view_form
msgid "Allow employees to access their DMS Documents."
msgstr ""

#. module: hr_dms_field
#: model:ir.model,name:hr_dms_field.model_hr_employee_base
msgid "Basic Employee"
msgstr ""

#. module: hr_dms_field
#: model:ir.model,name:hr_dms_field.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: hr_dms_field
#: model:ir.model.fields,field_description:hr_dms_field.field_hr_employee_base__dms_directory_ids
msgid "DMS Directories"
msgstr ""

#. module: hr_dms_field
#: model:res.groups,name:hr_dms_field.group_hr_public_dms
msgid "DMS Is accessible publicly on employee profile"
msgstr ""

#. module: hr_dms_field
#: model_terms:ir.ui.view,arch_db:hr_dms_field.hr_employee_public_view_form
#: model_terms:ir.ui.view,arch_db:hr_dms_field.view_employee_form
msgid "Documents"
msgstr ""

#. module: hr_dms_field
#: model:dms.access.group,name:hr_dms_field.read_access_hr_employee_group
msgid "Everyone for Employee DMS"
msgstr ""

#. module: hr_dms_field
#: model:ir.model.fields,field_description:hr_dms_field.field_hr_employee_public__is_logged
msgid "Is Logged"
msgstr ""

#. module: hr_dms_field
#: model:ir.model,name:hr_dms_field.model_hr_employee_public
msgid "Public Employee"
msgstr ""

#. module: hr_dms_field
#: model:ir.model.fields,field_description:hr_dms_field.field_res_config_settings__group_hr_public_dms
msgid "Show DMS Documents to logged employees"
msgstr ""
Loading
Loading