diff --git a/base_export_manager/README.rst b/base_export_manager/README.rst index 13c9b44..b946935 100644 --- a/base_export_manager/README.rst +++ b/base_export_manager/README.rst @@ -1,10 +1,29 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - -=================== -Base Export Manager -=================== +============================ +Manage model export profiles +============================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-OCA%2Fserver--ux-lightgray.png?logo=github + :target: https://github.com/OCA/server-ux/tree/11.0/base_export_manager + :alt: OCA/server-ux +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-ux-11-0/server-ux-11-0-base_export_manager + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/250/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| This module extends the export capability: @@ -14,6 +33,11 @@ This module extends the export capability: override the export method to check if the user is allowed to export. Export is enabled by default. +**Table of contents** + +.. contents:: + :local: + Configuration ============= @@ -63,10 +87,6 @@ Once you have configured groups who cannot export an object: * Go to the list view of the object you disabled the export * Select records and open the Action menu. The "Export" is not there. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/149/9.0 - Known issues / Roadmap ====================== @@ -75,17 +95,25 @@ Known issues / Roadmap 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. +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 +~~~~~~~ + +* Tecnativa +* LasLabs +* Ursa Information Systems + Contributors ------------- +~~~~~~~~~~~~ * Javier Iniesta * Antonio Espinosa @@ -95,17 +123,19 @@ Contributors * Sandip Mangukiya * Maxime Chambreuil -Maintainer ----------- +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/server-ux `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_export_manager/__init__.py b/base_export_manager/__init__.py index ba332de..cc6b635 100644 --- a/base_export_manager/__init__.py +++ b/base_export_manager/__init__.py @@ -1,6 +1,2 @@ -# -*- coding: utf-8 -*- -# Copyright 2015 Antiun Ingeniería S.L. - Antonio Espinosa -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import models from .hooks import post_init_hook diff --git a/base_export_manager/__manifest__.py b/base_export_manager/__manifest__.py index 1607048..fdf6f29 100644 --- a/base_export_manager/__manifest__.py +++ b/base_export_manager/__manifest__.py @@ -1,11 +1,12 @@ -# -*- coding: utf-8 -*- -# Copyright 2015 Antiun Ingeniería S.L. - Antonio Espinosa +# Copyright 2015 Tecnativa - Antonio Espinosa +# Copyright 2016 Tecnativa - Pedro M. Baeza +# Copyright 2018 Tecnativa - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': "Manage model export profiles", 'category': 'Personalization', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'depends': [ 'web', ], diff --git a/base_export_manager/hooks.py b/base_export_manager/hooks.py index 5718758..26d6189 100644 --- a/base_export_manager/hooks.py +++ b/base_export_manager/hooks.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import api, SUPERUSER_ID diff --git a/base_export_manager/models/__init__.py b/base_export_manager/models/__init__.py index 7c2c060..7539cfd 100644 --- a/base_export_manager/models/__init__.py +++ b/base_export_manager/models/__init__.py @@ -1,6 +1,2 @@ -# -*- coding: utf-8 -*- -# Copyright 2015 Antiun Ingeniería S.L. - Antonio Espinosa -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import ir_exports, ir_exports_line from . import ir_model_access, res_users diff --git a/base_export_manager/models/ir_exports.py b/base_export_manager/models/ir_exports.py index 1e48b93..fcef02d 100644 --- a/base_export_manager/models/ir_exports.py +++ b/base_export_manager/models/ir_exports.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2015-2016 Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/base_export_manager/models/ir_exports_line.py b/base_export_manager/models/ir_exports_line.py index d9292f7..bf5eacd 100644 --- a/base_export_manager/models/ir_exports_line.py +++ b/base_export_manager/models/ir_exports_line.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2015 Antiun Ingeniería S.L. - Antonio Espinosa # Copyright 2015-2016 Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/base_export_manager/models/ir_model_access.py b/base_export_manager/models/ir_model_access.py index 7dfc163..466ad0c 100644 --- a/base_export_manager/models/ir_model_access.py +++ b/base_export_manager/models/ir_model_access.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 - Ursa Information Systems # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) diff --git a/base_export_manager/models/res_users.py b/base_export_manager/models/res_users.py index 4db9dd6..cb5ab57 100644 --- a/base_export_manager/models/res_users.py +++ b/base_export_manager/models/res_users.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 - Ursa Information Systems # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) diff --git a/base_export_manager/readme/CONFIGURE.rst b/base_export_manager/readme/CONFIGURE.rst new file mode 100644 index 0000000..8cfa7d4 --- /dev/null +++ b/base_export_manager/readme/CONFIGURE.rst @@ -0,0 +1,6 @@ +* Activate the developer mode +* Go to Settings > Users > Groups to select a user group +* Edit the group and go to the Access Rights tab +* Uncheck the "Export Access" box on the object of your choice and save + +You can also go to Settings > Technical > Security > Access Rights. diff --git a/base_export_manager/readme/CONTRIBUTORS.rst b/base_export_manager/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..862ed86 --- /dev/null +++ b/base_export_manager/readme/CONTRIBUTORS.rst @@ -0,0 +1,7 @@ +* Javier Iniesta +* Antonio Espinosa +* Rafael Blasco +* Jairo Llopis +* Dave Lasley +* Sandip Mangukiya +* Maxime Chambreuil diff --git a/base_export_manager/readme/DESCRIPTION.rst b/base_export_manager/readme/DESCRIPTION.rst new file mode 100644 index 0000000..adb27f0 --- /dev/null +++ b/base_export_manager/readme/DESCRIPTION.rst @@ -0,0 +1,7 @@ +This module extends the export capability: + +1. It allows an admin to manage export profiles (``ir.exports``) that + Odoo stores internally but does not show anywhere. +2. It also adds a new column to access rights to enable/disable export and + override the export method to check if the user is allowed to export. Export + is enabled by default. diff --git a/base_export_manager/readme/ROADMAP.rst b/base_export_manager/readme/ROADMAP.rst new file mode 100644 index 0000000..d3e0fa7 --- /dev/null +++ b/base_export_manager/readme/ROADMAP.rst @@ -0,0 +1 @@ +* Translated labels are not used in final exported file. diff --git a/base_export_manager/readme/USAGE.rst b/base_export_manager/readme/USAGE.rst new file mode 100644 index 0000000..5c9baf9 --- /dev/null +++ b/base_export_manager/readme/USAGE.rst @@ -0,0 +1,35 @@ +You can create the export profiles as you are used to: + +* Go to any list view. +* Check some records. +* Press *More > Export*. +* Use the wizard to choose the columns to export. +* Press *Save fields list*. +* Give it a name. +* Press *OK*. + +To manage export profiles, you need to: + +* Go to *Settings > Technical > User Interface > Export Profiles*. +* Create a new one. +* Choose a name. +* Choose a model (table in the database). +* Choose the fields to export. + + * If you choose a related field, you can choose also up to 4 levels of + subfields. + * You can drag & drop to reorder the fields. + +To use one of those profiles, you need to: + +* Go to any list view. +* Check some records. +* Press *More > Export*. +* Choose your saved export from *Saved exports*. +* Press *Export to file*. + +Once you have configured groups who cannot export an object: + +* Connect as a user of this group +* Go to the list view of the object you disabled the export +* Select records and open the Action menu. The "Export" is not there. diff --git a/base_export_manager/tests/__init__.py b/base_export_manager/tests/__init__.py index 5a46641..429b33f 100644 --- a/base_export_manager/tests/__init__.py +++ b/base_export_manager/tests/__init__.py @@ -1,7 +1,2 @@ -# -*- coding: utf-8 -*- -# Copyright 2015 Antiun Ingeniería S.L. - Javier Iniesta -# Copyright 2015 Antiun Ingeniería S.L. - Jairo Llopis -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import test_ir_exports from . import test_ir_exports_line diff --git a/base_export_manager/tests/test_ir_exports.py b/base_export_manager/tests/test_ir_exports.py index f5c9041..6684d63 100644 --- a/base_export_manager/tests/test_ir_exports.py +++ b/base_export_manager/tests/test_ir_exports.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# © 2015 Antiun Ingeniería S.L. - Jairo Llopis +# Copyright 2015-2018 Tecnativa - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.exceptions import ValidationError diff --git a/base_export_manager/tests/test_ir_exports_line.py b/base_export_manager/tests/test_ir_exports_line.py index 00a2afb..117d7d2 100644 --- a/base_export_manager/tests/test_ir_exports_line.py +++ b/base_export_manager/tests/test_ir_exports_line.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2015 Antiun Ingenieria S.L. - Javier Iniesta # Copyright 2016 Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).