From 811f9e6648df7b7f7c2b29be19efa4ca04b72b96 Mon Sep 17 00:00:00 2001 From: david-s73 Date: Thu, 25 Jul 2024 11:43:58 +0200 Subject: [PATCH] [IMP] base_export_manager: pre-commit auto fixes --- base_export_manager/README.rst | 100 +++++++++--------- base_export_manager/pyproject.toml | 3 + base_export_manager/readme/CONFIGURE.md | 6 ++ base_export_manager/readme/CONFIGURE.rst | 6 -- base_export_manager/readme/CONTRIBUTORS.md | 10 ++ base_export_manager/readme/CONTRIBUTORS.rst | 10 -- base_export_manager/readme/DESCRIPTION.md | 7 ++ base_export_manager/readme/DESCRIPTION.rst | 7 -- base_export_manager/readme/ROADMAP.md | 1 + base_export_manager/readme/ROADMAP.rst | 1 - base_export_manager/readme/USAGE.md | 34 ++++++ base_export_manager/readme/USAGE.rst | 35 ------ .../static/description/index.html | 27 +++-- 13 files changed, 123 insertions(+), 124 deletions(-) create mode 100644 base_export_manager/pyproject.toml create mode 100644 base_export_manager/readme/CONFIGURE.md delete mode 100644 base_export_manager/readme/CONFIGURE.rst create mode 100644 base_export_manager/readme/CONTRIBUTORS.md delete mode 100644 base_export_manager/readme/CONTRIBUTORS.rst create mode 100644 base_export_manager/readme/DESCRIPTION.md delete mode 100644 base_export_manager/readme/DESCRIPTION.rst create mode 100644 base_export_manager/readme/ROADMAP.md delete mode 100644 base_export_manager/readme/ROADMAP.rst create mode 100644 base_export_manager/readme/USAGE.md delete mode 100644 base_export_manager/readme/USAGE.rst diff --git a/base_export_manager/README.rst b/base_export_manager/README.rst index 538d76c57d..0e881f8f69 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/17.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-17-0/server-ux-17-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=17.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 - subfields. - * You can drag & drop to reorder the fields. + - 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*. +- 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/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..3cac1c8084 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

@@ -422,8 +421,8 @@

Usage

  • 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.
    • +
    • If you choose a related field, you can choose also up to 4 levels +of subfields.
    • You can drag & drop to reorder the fields.
  • @@ -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.