diff --git a/README.md b/README.md index 3e881969443..3505c47ce19 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ addon | version | maintainers | summary [mgmtsystem_audit](mgmtsystem_audit/) | 14.0.1.0.0 | | Management System - Audit [mgmtsystem_claim](mgmtsystem_claim/) | 14.0.1.0.0 | | Management System - Claim [mgmtsystem_environment](mgmtsystem_environment/) | 14.0.1.0.0 | | Environment Management System -[mgmtsystem_evaluation](mgmtsystem_evaluation/) | 14.0.1.0.1 | | Evaluate records within your management system +[mgmtsystem_evaluation](mgmtsystem_evaluation/) | 14.0.1.0.2 | | Evaluate records within your management system [mgmtsystem_evaluation_hr](mgmtsystem_evaluation_hr/) | 14.0.1.0.0 | | Allow to use evaluations on Employees [mgmtsystem_hazard](mgmtsystem_hazard/) | 14.0.1.0.1 | | Hazard [mgmtsystem_hazard_risk](mgmtsystem_hazard_risk/) | 14.0.1.0.0 | | Hazard Risk diff --git a/mgmtsystem_evaluation/README.rst b/mgmtsystem_evaluation/README.rst index 3374f3bf32a..9afe3ba81ea 100644 --- a/mgmtsystem_evaluation/README.rst +++ b/mgmtsystem_evaluation/README.rst @@ -7,7 +7,7 @@ Mgmtsystem Evaluation !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:70388c15c76244d7450fca6127d9f41636bd35f826277fed39fcdecf04ecc08a + !! source digest: sha256:4d84096dbd94cc14750bc04a958e1ee72e314317bc4411266dbd02ef3e21a1e4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/mgmtsystem_evaluation/__manifest__.py b/mgmtsystem_evaluation/__manifest__.py index 21ceaec8243..3662eb227a8 100644 --- a/mgmtsystem_evaluation/__manifest__.py +++ b/mgmtsystem_evaluation/__manifest__.py @@ -5,7 +5,7 @@ "name": "Mgmtsystem Evaluation", "summary": """ Evaluate records within your management system""", - "version": "14.0.1.0.1", + "version": "14.0.1.0.2", "license": "AGPL-3", "author": "CreuBlanca,Odoo Community Association (OCA)", "website": "https://github.com/OCA/management-system", diff --git a/mgmtsystem_evaluation/i18n/it.po b/mgmtsystem_evaluation/i18n/it.po index 846017354e4..05eb56a55f9 100644 --- a/mgmtsystem_evaluation/i18n/it.po +++ b/mgmtsystem_evaluation/i18n/it.po @@ -210,6 +210,11 @@ msgstr "Seguito da (partner)" msgid "Font awesome icon e.g. fa-tasks" msgstr "Icona Font Awesome es. fa-tasks" +#. module: mgmtsystem_evaluation +#: model:ir.model.fields,field_description:mgmtsystem_evaluation.field_mgmtsystem_evaluation_template__group_id +msgid "Group" +msgstr "" + #. module: mgmtsystem_evaluation #: model:ir.model.fields,field_description:mgmtsystem_evaluation.field_ir_model__id #: model:ir.model.fields,field_description:mgmtsystem_evaluation.field_mgmtsystem_evaluation__id diff --git a/mgmtsystem_evaluation/i18n/mgmtsystem_evaluation.pot b/mgmtsystem_evaluation/i18n/mgmtsystem_evaluation.pot index 9231d4ff4c2..9f18227fc0a 100644 --- a/mgmtsystem_evaluation/i18n/mgmtsystem_evaluation.pot +++ b/mgmtsystem_evaluation/i18n/mgmtsystem_evaluation.pot @@ -203,6 +203,11 @@ msgstr "" msgid "Font awesome icon e.g. fa-tasks" msgstr "" +#. module: mgmtsystem_evaluation +#: model:ir.model.fields,field_description:mgmtsystem_evaluation.field_mgmtsystem_evaluation_template__group_id +msgid "Group" +msgstr "" + #. module: mgmtsystem_evaluation #: model:ir.model.fields,field_description:mgmtsystem_evaluation.field_ir_model__id #: model:ir.model.fields,field_description:mgmtsystem_evaluation.field_mgmtsystem_evaluation__id diff --git a/mgmtsystem_evaluation/models/mgmtsystem_evaluation_template.py b/mgmtsystem_evaluation/models/mgmtsystem_evaluation_template.py index 0ebdc4ed548..8b86f8e5089 100644 --- a/mgmtsystem_evaluation/models/mgmtsystem_evaluation_template.py +++ b/mgmtsystem_evaluation/models/mgmtsystem_evaluation_template.py @@ -56,6 +56,7 @@ class MgmtsytemEvaluationTemplate(models.Model): once the evaluation is started""", ) note = fields.Html() + group_id = fields.Many2one("res.groups") recurrence_type = fields.Selection( lambda self: [ (key, value[0]) for key, value in self._get_recurrence_type().items() diff --git a/mgmtsystem_evaluation/security/security.xml b/mgmtsystem_evaluation/security/security.xml index 07fdaefddc1..713373b80e9 100644 --- a/mgmtsystem_evaluation/security/security.xml +++ b/mgmtsystem_evaluation/security/security.xml @@ -18,5 +18,13 @@ [('manager_ids', '=', user.id)] + + Template group can access all related evaluations + + + [('template_id.group_id.users', '=', user.id)] + diff --git a/mgmtsystem_evaluation/static/description/index.html b/mgmtsystem_evaluation/static/description/index.html index 1cf3b093e7a..157a190c38b 100644 --- a/mgmtsystem_evaluation/static/description/index.html +++ b/mgmtsystem_evaluation/static/description/index.html @@ -1,4 +1,3 @@ - @@ -367,7 +366,7 @@

Mgmtsystem Evaluation

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:70388c15c76244d7450fca6127d9f41636bd35f826277fed39fcdecf04ecc08a +!! source digest: sha256:4d84096dbd94cc14750bc04a958e1ee72e314317bc4411266dbd02ef3e21a1e4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runboat

This module allows to generate evaluations for any kind of models.

diff --git a/mgmtsystem_evaluation/views/mgmtsystem_evaluation_template.xml b/mgmtsystem_evaluation/views/mgmtsystem_evaluation_template.xml index c4be48702ee..0f3aa40f360 100644 --- a/mgmtsystem_evaluation/views/mgmtsystem_evaluation_template.xml +++ b/mgmtsystem_evaluation/views/mgmtsystem_evaluation_template.xml @@ -25,6 +25,7 @@ +