diff --git a/base_export_manager/README.rst b/base_export_manager/README.rst index 538d76c57d..922a149bfd 100644 --- a/base_export_manager/README.rst +++ b/base_export_manager/README.rst @@ -17,13 +17,13 @@ Manage model export profiles :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/16.0/base_export_manager + :target: https://github.com/OCA/server-ux/tree/18.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-16-0/server-ux-16-0-base_export_manager + :target: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_export_manager :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/server-ux&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -32,9 +32,9 @@ 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. +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. **Table of contents** @@ -44,10 +44,10 @@ This module extends the export capability: Configuration ============= -* 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 +- 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. @@ -56,44 +56,44 @@ Usage You can create the export profiles as you are used to: -* Go to any list view. -* Check some records. -* Click *Action > Export*. -* Use the wizard to choose the columns to export. -* Click on the *Template* dropdown and select *New template* -* Give it a name. -* Click on the floppy disk icon to save it. +- Go to any list view. +- Check some records. +- Click *Action > Export*. +- Use the wizard to choose the columns to export. +- Click on the *Template* dropdown and select *New template* +- Give it a name. +- Click on the floppy disk icon to save it. 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. +- 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 + - If you choose a related field, you can choose also up to 4 levels of subfields. - * You can drag & drop to reorder the fields. + - 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. -* Click *Action > Export*. -* Choose your saved export from *Saved exports*. -* Press *Export to file*. +- Go to any list view. +- Check some records. +- Click *Action > 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. +- 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. Known issues / Roadmap ====================== -* Translated labels are not used in final exported file. +- Translated labels are not used in final exported file. Bug Tracker =========== @@ -101,7 +101,7 @@ 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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -109,7 +109,7 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa * LasLabs @@ -117,21 +117,21 @@ Authors * brain-tec AG Contributors -~~~~~~~~~~~~ - -* Javier Iniesta -* Antonio Espinosa -* Rafael Blasco -* Jairo Llopis -* Dave Lasley -* Sandip Mangukiya -* Maxime Chambreuil -* Olivier Jossen -* Alexandre Díaz -* Kevin Khao +------------ + +- Javier Iniesta +- Antonio Espinosa +- Rafael Blasco +- Jairo Llopis +- Dave Lasley +- Sandip Mangukiya +- Maxime Chambreuil +- Olivier Jossen +- Alexandre Díaz +- Kevin Khao Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -143,6 +143,6 @@ 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. -This module is part of the `OCA/server-ux `_ project on GitHub. +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/__manifest__.py b/base_export_manager/__manifest__.py index 328f6dd847..562968def6 100644 --- a/base_export_manager/__manifest__.py +++ b/base_export_manager/__manifest__.py @@ -15,7 +15,6 @@ "views/ir_model_access.xml", "views/res_groups.xml", ], - "qweb": ["static/src/xml/base.xml"], "author": "Tecnativa, " "LasLabs, " "Ursa Information Systems, " @@ -26,7 +25,6 @@ "assets": { "web.assets_backend": [ "base_export_manager/static/src/views/list/list_controller.esm.js", - "base_export_manager/static/src/xml/base.xml", ], }, "installable": True, diff --git a/base_export_manager/models/ir_exports_line.py b/base_export_manager/models/ir_exports_line.py index d401bf5a45..1885e9cb4a 100644 --- a/base_export_manager/models/ir_exports_line.py +++ b/base_export_manager/models/ir_exports_line.py @@ -140,9 +140,9 @@ def _inverse_name(self): # You could get to failing constraint while populating the # fields, so we skip the uniqueness check and manually check # the full constraint after the loop - one.with_context(skip_check=True)[ - one.field_n(num, True) - ] = one._get_field_id(model, field_name) + one.with_context(skip_check=True)[one.field_n(num, True)] = ( + one._get_field_id(model, field_name) + ) if any(parts): # invalidate_recordset -> in order to get actual value of field 'label' # in function '_check_name' diff --git a/base_export_manager/models/ir_model_access.py b/base_export_manager/models/ir_model_access.py index bb06801028..2395d27c59 100644 --- a/base_export_manager/models/ir_model_access.py +++ b/base_export_manager/models/ir_model_access.py @@ -9,5 +9,5 @@ class IrModelAccess(models.Model): _inherit = "ir.model.access" # WARN: This can't be used in 'check()' - # See https://github.com/odoo/odoo/blob/0b6a2569920b6584652c39b3465998649fe305b4/odoo/addons/base/models/ir_model.py#L1496 # noqa: B950 + # See https://github.com/odoo/odoo/blob/0b6a2569920b6584652c39b3465998649fe305b4/odoo/addons/base/models/ir_model.py#L1496 # noqa: B950, E501 perm_export = fields.Boolean("Export Access", default=True) diff --git a/base_export_manager/pyproject.toml b/base_export_manager/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/base_export_manager/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/base_export_manager/readme/CONFIGURE.md b/base_export_manager/readme/CONFIGURE.md new file mode 100644 index 0000000000..4b4d02edd0 --- /dev/null +++ b/base_export_manager/readme/CONFIGURE.md @@ -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/CONFIGURE.rst b/base_export_manager/readme/CONFIGURE.rst deleted file mode 100644 index 8cfa7d4e31..0000000000 --- a/base_export_manager/readme/CONFIGURE.rst +++ /dev/null @@ -1,6 +0,0 @@ -* 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.md b/base_export_manager/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..1d13ec61a4 --- /dev/null +++ b/base_export_manager/readme/CONTRIBUTORS.md @@ -0,0 +1,10 @@ +- Javier Iniesta \<\> +- Antonio Espinosa \<\> +- Rafael Blasco \<\> +- Jairo Llopis \<\> +- Dave Lasley \<\> +- Sandip Mangukiya \<\> +- Maxime Chambreuil \<\> +- Olivier Jossen \<\> +- Alexandre Díaz \<\> +- Kevin Khao \<\> diff --git a/base_export_manager/readme/CONTRIBUTORS.rst b/base_export_manager/readme/CONTRIBUTORS.rst deleted file mode 100644 index e98797be4a..0000000000 --- a/base_export_manager/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,10 +0,0 @@ -* Javier Iniesta -* Antonio Espinosa -* Rafael Blasco -* Jairo Llopis -* Dave Lasley -* Sandip Mangukiya -* Maxime Chambreuil -* Olivier Jossen -* Alexandre Díaz -* Kevin Khao diff --git a/base_export_manager/readme/DESCRIPTION.md b/base_export_manager/readme/DESCRIPTION.md new file mode 100644 index 0000000000..763b3cebfb --- /dev/null +++ b/base_export_manager/readme/DESCRIPTION.md @@ -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/DESCRIPTION.rst b/base_export_manager/readme/DESCRIPTION.rst deleted file mode 100644 index adb27f07e3..0000000000 --- a/base_export_manager/readme/DESCRIPTION.rst +++ /dev/null @@ -1,7 +0,0 @@ -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.md b/base_export_manager/readme/ROADMAP.md new file mode 100644 index 0000000000..4dc35fe6ff --- /dev/null +++ b/base_export_manager/readme/ROADMAP.md @@ -0,0 +1 @@ +- Translated labels are not used in final exported file. diff --git a/base_export_manager/readme/ROADMAP.rst b/base_export_manager/readme/ROADMAP.rst deleted file mode 100644 index d3e0fa797c..0000000000 --- a/base_export_manager/readme/ROADMAP.rst +++ /dev/null @@ -1 +0,0 @@ -* Translated labels are not used in final exported file. diff --git a/base_export_manager/readme/USAGE.md b/base_export_manager/readme/USAGE.md new file mode 100644 index 0000000000..822b610857 --- /dev/null +++ b/base_export_manager/readme/USAGE.md @@ -0,0 +1,34 @@ +You can create the export profiles as you are used to: + +- Go to any list view. +- Check some records. +- Click *Action \> Export*. +- Use the wizard to choose the columns to export. +- Click on the *Template* dropdown and select *New template* +- Give it a name. +- Click on the floppy disk icon to save it. + +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. +- Click *Action \> 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/readme/USAGE.rst b/base_export_manager/readme/USAGE.rst deleted file mode 100644 index 8ad4ef5fbd..0000000000 --- a/base_export_manager/readme/USAGE.rst +++ /dev/null @@ -1,35 +0,0 @@ -You can create the export profiles as you are used to: - -* Go to any list view. -* Check some records. -* Click *Action > Export*. -* Use the wizard to choose the columns to export. -* Click on the *Template* dropdown and select *New template* -* Give it a name. -* Click on the floppy disk icon to save it. - -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. -* Click *Action > 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/static/description/index.html b/base_export_manager/static/description/index.html index 293756ebdc..cdf9d17ad3 100644 --- a/base_export_manager/static/description/index.html +++ b/base_export_manager/static/description/index.html @@ -8,11 +8,10 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ +:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. -Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +274,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: gray; } /* line numbers */ +pre.code .ln { color: grey; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +300,7 @@ span.pre { white-space: pre } -span.problematic, pre.problematic { +span.problematic { color: red } span.section-subtitle { @@ -369,14 +368,14 @@

Manage model export profiles

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:8bd0c1dfda164c48681cc3ed4ff2b5bfa4e0987526c8e5b2b1a1514bb6a6af6b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/server-ux Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/server-ux Translate me on Weblate Try me on Runboat

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. -
  3. 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.
  4. +
  5. 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.

Table of contents

@@ -454,7 +453,7 @@

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 to smash it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -486,13 +485,11 @@

Contributors

Maintainers

This module is maintained by the OCA.

- -Odoo Community Association - +Odoo Community Association

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.

-

This module is part of the OCA/server-ux project on GitHub.

+

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.