diff --git a/uom_manager_group/README.rst b/uom_manager_group/README.rst new file mode 100644 index 0000000..1f3104a --- /dev/null +++ b/uom_manager_group/README.rst @@ -0,0 +1,77 @@ +============================= +Unit of Measure Manager Group +============================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-akretion%2Fodoo--usability-lightgray.png?logo=github + :target: https://github.com/akretion/odoo-usability/tree/12.0/uom_manager_group + :alt: akretion/odoo-usability + +|badge1| |badge2| |badge3| + +In Odoo, all a majority of modules "Managers" dealing with products (like Sales Manager, +Inventory Manager, Manufacturing Manager,...) have access rights to create/write/delete +Units of Measure whereas the Sale/Inventory/Manufacturing "Users" have only reading +rights... when part of the (misnamed) Technical group "Manage Multiple Units of Measure" +is activated. + +This module helps to **clarify these UoM access rights** and groups by creating a new +group category called "Units of Measure" with two different groups : + +- **User** : UoM fields are displayed but not Uom menus (Users are not allowed to create or modify UoM) +- **Manager** : display both fields and UoM menus +- and if nothing is selected, neither UoM fields nor menus are displayed + + +.. figure:: https://raw.githubusercontent.com/akretion/odoo-usability/12.0-mig-product-unit-manager-group/uom_manager_group/static/description/uom_manager_group-readme_1.png + +By doing so, the module also remove create/write/delete rights from other module's +Managers in order to reserve these rights to the new "Units of Measure Manager" group : + +.. figure:: https://raw.githubusercontent.com/akretion/odoo-usability/12.0-mig-product-unit-manager-group/uom_manager_group/static/description/uom_manager_group-readme_2.png + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Go to your User's Settings and select the desired acces right for the application +access "Units of Measure". + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Akretion + +Maintainers +~~~~~~~~~~~ + +This module is part of the `akretion/odoo-usability `_ project on GitHub. + +You are welcome to contribute. diff --git a/uom_manager_group/__init__.py b/uom_manager_group/__init__.py new file mode 100644 index 0000000..32cf983 --- /dev/null +++ b/uom_manager_group/__init__.py @@ -0,0 +1,2 @@ +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/uom_manager_group/__manifest__.py b/uom_manager_group/__manifest__.py new file mode 100644 index 0000000..2043048 --- /dev/null +++ b/uom_manager_group/__manifest__.py @@ -0,0 +1,17 @@ +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Unit of Measure Manager Group", + "version": "12.0.1.0.0", + "license": "AGPL-3", + "author": "Akretion", + "website": "http://akretion.com", + "depends": ["sale", "purchase", "mrp"], + "data": [ + "data/ir_module_category_data.xml", + "security/product_security.xml", + "security/ir.model.access.csv", + "views/product_view.xml", + ], + "installable": True, +} diff --git a/uom_manager_group/data/ir_module_category_data.xml b/uom_manager_group/data/ir_module_category_data.xml new file mode 100644 index 0000000..2955cd4 --- /dev/null +++ b/uom_manager_group/data/ir_module_category_data.xml @@ -0,0 +1,8 @@ + + + + Units of Measure + Enable using any units of measure + 0 + + diff --git a/uom_manager_group/i18n/fr.po b/uom_manager_group/i18n/fr.po new file mode 100644 index 0000000..2d82c99 --- /dev/null +++ b/uom_manager_group/i18n/fr.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * uom_manager_group +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-13 15:35+0000\n" +"PO-Revision-Date: 2017-03-13 15:35+0000\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: uom_manager_group +#: model:res.groups,comment:uom_manager_group.group_uom_manager +#: model:res.groups,name:uom_manager_group.group_uom_manager +msgid "Manage Multiple Units of Measure" +msgstr "Gérer plusieurs unités de mesure" + +#. module: uom_manager_group +#: model:res.groups,comment:product.group_uom +#: model:res.groups,name:product.group_uom +msgid "Use Multiple Units of Measure" +msgstr "Utiliser plusieurs unités de mesure" + diff --git a/uom_manager_group/readme/CONFIGURE.rst b/uom_manager_group/readme/CONFIGURE.rst new file mode 100644 index 0000000..e69de29 diff --git a/uom_manager_group/readme/CONTRIBUTORS.rst b/uom_manager_group/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..e69de29 diff --git a/uom_manager_group/readme/DESCRIPTION.rst b/uom_manager_group/readme/DESCRIPTION.rst new file mode 100644 index 0000000..8bc3d5b --- /dev/null +++ b/uom_manager_group/readme/DESCRIPTION.rst @@ -0,0 +1,20 @@ +In Odoo, all a majority of modules "Managers" dealing with products (like Sales Manager, +Inventory Manager, Manufacturing Manager,...) have access rights to create/write/delete +Units of Measure whereas the Sale/Inventory/Manufacturing "Users" have only reading +rights... when part of the (misnamed) Technical group "Manage Multiple Units of Measure" +is activated. + +This module helps to **clarify these UoM access rights** and groups by creating a new +group category called "Units of Measure" with two different groups : + +- **User** : UoM fields are displayed but not Uom menus (Users are not allowed to create or modify UoM) +- **Manager** : display both fields and UoM menus +- and if nothing is selected, neither UoM fields nor menus are displayed + + +.. figure:: ../static/description/uom_manager_group-readme_1.png + +By doing so, the module also remove create/write/delete rights from other module's +Managers in order to reserve these rights to the new "Units of Measure Manager" group : + +.. figure:: ../static/description/uom_manager_group-readme_2.png diff --git a/uom_manager_group/readme/ROADMAP.rst b/uom_manager_group/readme/ROADMAP.rst new file mode 100644 index 0000000..e69de29 diff --git a/uom_manager_group/readme/USAGE.rst b/uom_manager_group/readme/USAGE.rst new file mode 100644 index 0000000..182e4b9 --- /dev/null +++ b/uom_manager_group/readme/USAGE.rst @@ -0,0 +1,2 @@ +Go to your User's Settings and select the desired acces right for the application +access "Units of Measure". diff --git a/uom_manager_group/security/ir.model.access.csv b/uom_manager_group/security/ir.model.access.csv new file mode 100644 index 0000000..db47b08 --- /dev/null +++ b/uom_manager_group/security/ir.model.access.csv @@ -0,0 +1,15 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_uom_uom_manager,uom.uom.manager,uom.model_uom_uom,group_uom_manager,1,1,1,1 +access_uom_category_manager,uom.category.manager,uom.model_uom_category,group_uom_manager,1,1,1,1 +access_uom_uom_user,uom.uom.user,uom.model_uom_uom,uom.group_uom,1,0,0,0 +access_uom_uom_categ_user,uom.uom.categ.user,uom.model_uom_category,uom.group_uom,1,0,0,0 +uom.access_uom_category_manager,uom.category.manager,uom.model_uom_category,base.group_system,1,0,0,0 +uom.access_uom_uom_manager,uom.uom.manager,uom.model_uom_uom,base.group_system,1,0,0,0 +sale.access_uom_uom_sale_manager,uom.uom salemanager,uom.model_uom_uom,sales_team.group_sale_manager,1,0,0,0 +sale.access_uom_category_sale_manager,uom.category salemanager,uom.model_uom_category,sales_team.group_sale_manager,1,0,0,0 +purchase.access_uom_uom_purchase_manager,uom.uom purchase_manager,uom.model_uom_uom,purchase.group_purchase_manager,1,0,0,0 +purchase.access_uom_category_purchase_manager,uom.category purchase_manager,uom.model_uom_category,purchase.group_purchase_manager,1,0,0,0 +mrp.access_uom_uom_mrp_manager,uom.uom mrp_manager,uom.model_uom_uom,mrp.group_mrp_manager,1,0,0,0 +mrp.access_uom_category_mrp_manager,uom.category mrp_manager,uom.model_uom_category,mrp.group_mrp_manager,1,0,0,0 +stock.access_uom_uom_stock_manager,uom.uom stock_manager,uom.model_uom_uom,stock.group_stock_manager,1,0,0,0 +stock.access_uom_category_stock_manager,uom.category stock_manager,uom.model_uom_category,stock.group_stock_manager,1,0,0,0 \ No newline at end of file diff --git a/uom_manager_group/security/product_security.xml b/uom_manager_group/security/product_security.xml new file mode 100644 index 0000000..a98e883 --- /dev/null +++ b/uom_manager_group/security/product_security.xml @@ -0,0 +1,18 @@ + + + + + User + display and use UoM + + + + + Manager + display UoM menus, create UoM and modify them + + + + + + diff --git a/uom_manager_group/static/description/index.html b/uom_manager_group/static/description/index.html new file mode 100644 index 0000000..522f395 --- /dev/null +++ b/uom_manager_group/static/description/index.html @@ -0,0 +1,432 @@ + + + + + + +Unit of Measure Manager Group + + + +
+

Unit of Measure Manager Group

+ + +

Beta License: AGPL-3 akretion/odoo-usability

+

In Odoo, all a majority of modules “Managers” dealing with products (like Sales Manager, +Inventory Manager, Manufacturing Manager,…) have access rights to create/write/delete +Units of Measure whereas the Sale/Inventory/Manufacturing “Users” have only reading +rights… when part of the (misnamed) Technical group “Manage Multiple Units of Measure” +is activated.

+

This module helps to clarify these UoM access rights and groups by creating a new +group category called “Units of Measure” with two different groups :

+
    +
  • User : UoM fields are displayed but not Uom menus (Users are not allowed to create or modify UoM)
  • +
  • Manager : display both fields and UoM menus
  • +
  • and if nothing is selected, neither UoM fields nor menus are displayed
  • +
+
+https://raw.githubusercontent.com/akretion/odoo-usability/12.0/uom_manager_group/static/description/uom_manager_group-readme_1.png +
+

By doing so, the module also remove create/write/delete rights from other module’s +Managers in order to reserve these rights to the new “Units of Measure Manager” group :

+
+https://raw.githubusercontent.com/akretion/odoo-usability/12.0/uom_manager_group/static/description/uom_manager_group-readme_2.png +
+

Table of contents

+ +
+

Usage

+

Go to your User’s Settings and select the desired acces right for the application +access “Units of Measure”.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Maintainers

+

This module is part of the akretion/odoo-usability project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/uom_manager_group/static/description/uom_manager_group-readme_1.png b/uom_manager_group/static/description/uom_manager_group-readme_1.png new file mode 100644 index 0000000..3c94a10 Binary files /dev/null and b/uom_manager_group/static/description/uom_manager_group-readme_1.png differ diff --git a/uom_manager_group/static/description/uom_manager_group-readme_2.png b/uom_manager_group/static/description/uom_manager_group-readme_2.png new file mode 100644 index 0000000..2ec5fd2 Binary files /dev/null and b/uom_manager_group/static/description/uom_manager_group-readme_2.png differ diff --git a/uom_manager_group/views/product_view.xml b/uom_manager_group/views/product_view.xml new file mode 100644 index 0000000..e6d7a8c --- /dev/null +++ b/uom_manager_group/views/product_view.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +