From 42a39020edc75e6c756d3f86dfa2c01109d0a1e2 Mon Sep 17 00:00:00 2001 From: Patryk Pyczko Date: Wed, 27 Nov 2024 11:26:45 +0100 Subject: [PATCH] [ADD] base_repair_config: Moved from manufacture --- base_repair_config/README.rst | 77 +++++++++-------- base_repair_config/__manifest__.py | 6 +- .../i18n/base_repair_config.pot | 13 +-- base_repair_config/i18n/ca.po | 31 +++++++ base_repair_config/i18n/es.po | 31 +++++++ base_repair_config/pyproject.toml | 3 + base_repair_config/readme/CONFIGURE.md | 1 + base_repair_config/readme/CONFIGURE.rst | 0 base_repair_config/readme/CONTRIBUTORS.md | 3 + base_repair_config/readme/CONTRIBUTORS.rst | 1 - base_repair_config/readme/DESCRIPTION.md | 26 ++++++ base_repair_config/readme/DESCRIPTION.rst | 35 -------- base_repair_config/readme/USAGE.md | 3 + base_repair_config/readme/USAGE.rst | 3 - .../static/description/index.html | 85 ++++++++++--------- .../views/res_config_settings.xml | 33 +++---- 16 files changed, 201 insertions(+), 150 deletions(-) create mode 100644 base_repair_config/i18n/ca.po create mode 100644 base_repair_config/i18n/es.po create mode 100644 base_repair_config/pyproject.toml create mode 100644 base_repair_config/readme/CONFIGURE.md delete mode 100644 base_repair_config/readme/CONFIGURE.rst create mode 100644 base_repair_config/readme/CONTRIBUTORS.md delete mode 100644 base_repair_config/readme/CONTRIBUTORS.rst create mode 100644 base_repair_config/readme/DESCRIPTION.md delete mode 100644 base_repair_config/readme/DESCRIPTION.rst create mode 100644 base_repair_config/readme/USAGE.md delete mode 100644 base_repair_config/readme/USAGE.rst diff --git a/base_repair_config/README.rst b/base_repair_config/README.rst index 7836741a..161eb97a 100644 --- a/base_repair_config/README.rst +++ b/base_repair_config/README.rst @@ -16,14 +16,14 @@ Base Repair Config .. |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%2Fmanufacture-lightgray.png?logo=github - :target: https://github.com/OCA/manufacture/tree/13.0/base_repair_config - :alt: OCA/manufacture +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frepair-lightgray.png?logo=github + :target: https://github.com/OCA/repair/tree/17.0/base_repair_config + :alt: OCA/repair .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-base_repair_config + :target: https://translation.odoo-community.org/projects/repair-17-0/repair-17-0-base_repair_config :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/manufacture&target_branch=13.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/repair&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -34,55 +34,51 @@ configuration. This is a technical module and it doesn't provide any new functionality. Extend this module to add general settings related to the repair app. -When extending the general settings view, here is an example of how the code -would look like: +When extending the general settings view, here is an example of how the +code would look like: .. code:: xml - - res.config.settings - - - -
-
-
-
-
-
-
+ + res.config.settings.view.form.inherit.repair + res.config.settings + + + + + + + + + + + + **Table of contents** .. contents:: :local: +Configuration +============= + + + Usage ===== To use this module, you need to: -#. Go to *Repair > Configuration > General Settings*. +1. Go to *Repair > Configuration > Settings*. Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +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. @@ -90,17 +86,20 @@ Credits ======= Authors -~~~~~~~ +------- * Escodoo Contributors -~~~~~~~~~~~~ +------------ + +- Marcel Savegnago +- `APSL-Nagarro `__: -* Marcel Savegnago + - Patryk Pyczko Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -120,6 +119,6 @@ Current `maintainer `__: |maintainer-marcelsavegnago| -This module is part of the `OCA/manufacture `_ project on GitHub. +This module is part of the `OCA/repair `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_repair_config/__manifest__.py b/base_repair_config/__manifest__.py index e03d8f02..7374a886 100644 --- a/base_repair_config/__manifest__.py +++ b/base_repair_config/__manifest__.py @@ -4,13 +4,13 @@ { "name": "Base Repair Config", "summary": """ - Provides general settings for the Maintenance App""", - "version": "13.0.1.0.0", + Provides general settings for the Repair App""", + "version": "17.0.1.0.0", "license": "AGPL-3", "author": "Escodoo,Odoo Community Association (OCA)", "maintainers": ["marcelsavegnago"], "images": ["static/description/banner.png"], - "website": "https://github.com/OCA/manufacture", + "website": "https://github.com/OCA/repair", "depends": ["repair"], "data": ["views/res_config_settings.xml"], } diff --git a/base_repair_config/i18n/base_repair_config.pot b/base_repair_config/i18n/base_repair_config.pot index f7c8ebf0..22b94416 100644 --- a/base_repair_config/i18n/base_repair_config.pot +++ b/base_repair_config/i18n/base_repair_config.pot @@ -4,8 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 17.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-11-27 10:55+0000\n" +"PO-Revision-Date: 2024-11-27 10:55+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -15,16 +17,15 @@ msgstr "" #. module: base_repair_config #: model_terms:ir.ui.view,arch_db:base_repair_config.res_config_settings_view_form -msgid "Configure Repair" +msgid "Repair" msgstr "" #. module: base_repair_config #: model:ir.actions.act_window,name:base_repair_config.action_repair_config_settings -#: model:ir.ui.menu,name:base_repair_config.menu_repair_config_settings -msgid "General Settings" +msgid "Repair Settings" msgstr "" #. module: base_repair_config -#: model_terms:ir.ui.view,arch_db:base_repair_config.res_config_settings_view_form -msgid "Repair" +#: model:ir.ui.menu,name:base_repair_config.menu_repair_config_settings +msgid "Settings" msgstr "" diff --git a/base_repair_config/i18n/ca.po b/base_repair_config/i18n/ca.po new file mode 100644 index 00000000..14ed6b39 --- /dev/null +++ b/base_repair_config/i18n/ca.po @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_repair_config +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-11-27 10:55+0000\n" +"PO-Revision-Date: 2024-11-27 10:55+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: base_repair_config +#: model_terms:ir.ui.view,arch_db:base_repair_config.res_config_settings_view_form +msgid "Repair" +msgstr "Reparacions" + +#. module: base_repair_config +#: model:ir.actions.act_window,name:base_repair_config.action_repair_config_settings +msgid "Repair Settings" +msgstr "Configuració de Reparacions" + +#. module: base_repair_config +#: model:ir.ui.menu,name:base_repair_config.menu_repair_config_settings +msgid "Settings" +msgstr "Configuració" diff --git a/base_repair_config/i18n/es.po b/base_repair_config/i18n/es.po new file mode 100644 index 00000000..ac84a11c --- /dev/null +++ b/base_repair_config/i18n/es.po @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_repair_config +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-11-27 10:55+0000\n" +"PO-Revision-Date: 2024-11-27 10:55+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: base_repair_config +#: model_terms:ir.ui.view,arch_db:base_repair_config.res_config_settings_view_form +msgid "Repair" +msgstr "Reparaciones" + +#. module: base_repair_config +#: model:ir.actions.act_window,name:base_repair_config.action_repair_config_settings +msgid "Repair Settings" +msgstr "Configuración de Reparaciones" + +#. module: base_repair_config +#: model:ir.ui.menu,name:base_repair_config.menu_repair_config_settings +msgid "Settings" +msgstr "Ajustes" diff --git a/base_repair_config/pyproject.toml b/base_repair_config/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/base_repair_config/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/base_repair_config/readme/CONFIGURE.md b/base_repair_config/readme/CONFIGURE.md new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/base_repair_config/readme/CONFIGURE.md @@ -0,0 +1 @@ + diff --git a/base_repair_config/readme/CONFIGURE.rst b/base_repair_config/readme/CONFIGURE.rst deleted file mode 100644 index e69de29b..00000000 diff --git a/base_repair_config/readme/CONTRIBUTORS.md b/base_repair_config/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..340a0e6b --- /dev/null +++ b/base_repair_config/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Marcel Savegnago \<\> +- [APSL-Nagarro](https://www.apsl.tech): + - Patryk Pyczko \<\> \ No newline at end of file diff --git a/base_repair_config/readme/CONTRIBUTORS.rst b/base_repair_config/readme/CONTRIBUTORS.rst deleted file mode 100644 index 61f9287b..00000000 --- a/base_repair_config/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Marcel Savegnago diff --git a/base_repair_config/readme/DESCRIPTION.md b/base_repair_config/readme/DESCRIPTION.md new file mode 100644 index 00000000..d8e6bb7b --- /dev/null +++ b/base_repair_config/readme/DESCRIPTION.md @@ -0,0 +1,26 @@ +This module provides an empty general settings section for the repair +configuration. + +This is a technical module and it doesn't provide any new functionality. +Extend this module to add general settings related to the repair app. + +When extending the general settings view, here is an example of how the +code would look like: + +``` xml + + res.config.settings.view.form.inherit.repair + res.config.settings + + + + + + + + + + + + +``` diff --git a/base_repair_config/readme/DESCRIPTION.rst b/base_repair_config/readme/DESCRIPTION.rst deleted file mode 100644 index b26dae46..00000000 --- a/base_repair_config/readme/DESCRIPTION.rst +++ /dev/null @@ -1,35 +0,0 @@ -This module provides an empty general settings section for the repair -configuration. - -This is a technical module and it doesn't provide any new functionality. -Extend this module to add general settings related to the repair app. - -When extending the general settings view, here is an example of how the code -would look like: - -.. code:: xml - - - res.config.settings - - - -
-
-
-
-
-
-
diff --git a/base_repair_config/readme/USAGE.md b/base_repair_config/readme/USAGE.md new file mode 100644 index 00000000..835f3638 --- /dev/null +++ b/base_repair_config/readme/USAGE.md @@ -0,0 +1,3 @@ +To use this module, you need to: + +1. Go to *Repair \> Configuration \> Settings*. diff --git a/base_repair_config/readme/USAGE.rst b/base_repair_config/readme/USAGE.rst deleted file mode 100644 index 0b8926ee..00000000 --- a/base_repair_config/readme/USAGE.rst +++ /dev/null @@ -1,3 +0,0 @@ -To use this module, you need to: - -#. Go to *Repair > Configuration > General Settings*. diff --git a/base_repair_config/static/description/index.html b/base_repair_config/static/description/index.html index cbe8fc07..f2332d1e 100644 --- a/base_repair_config/static/description/index.html +++ b/base_repair_config/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z 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 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* 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 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,35 +369,26 @@

Base Repair Config

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:3f32be4baab2f2f68f7977c38adf126bcf6be409ded6d37ca07d51c3dfdc0ef1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module provides an empty general settings section for the repair configuration.

This is a technical module and it doesn’t provide any new functionality. Extend this module to add general settings related to the repair app.

-

When extending the general settings view, here is an example of how the code -would look like:

+

When extending the general settings view, here is an example of how the +code would look like:

-<record id="res_config_settings_view_form" model="ir.ui.view">
+<record id="res_config_settings_view_form_inherit" model="ir.ui.view">
+    <field name="name">res.config.settings.view.form.inherit.repair</field>
     <field name="model">res.config.settings</field>
     <field name="inherit_id" ref="base_repair_config.res_config_settings_view_form"/>
     <field name="arch" type="xml">
-        <xpath expr="//div[@id='configure_repair']" position="after">
-            <div class="col-xs-12 col-md-6 o_setting_box">
-                <div class="o_setting_right_pane">
-                    <label for="new_field_name"/>
-                    <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
-                    <div class="row">
-                        <div class="text-muted col-md-8">
-                            Set some configuration data for this field ...
-                        </div>
-                    </div>
-                    <div class="content-group">
-                        <div class="mt16">
-                            <field name="new_field_name" class="o_light_label"/>
-                        </div>
-                    </div>
-                </div>
-            </div>
+        <xpath expr="//block[@name='repair_setting_container']" position="inside">
+            <setting id="extra_repair_setting" help="Enable extra repair configuration options.">
+                <field name="extra_repair_field"/>
+            </setting>
+            <setting id="another_repair_setting" help="Another repair-related setting.">
+                <field name="another_repair_field"/>
+            </setting>
         </xpath>
     </field>
 </record>
@@ -405,55 +396,65 @@ 

Base Repair Config

Table of contents

+
-

Usage

+

Usage

To use this module, you need to:

    -
  1. Go to Repair > Configuration > General Settings.
  2. +
  3. Go to Repair > Configuration > Settings.
-

Bug Tracker

-

Bugs are tracked on GitHub Issues. +

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.

-

Credits

+

Credits

-

Authors

+

Authors

  • Escodoo
-

Maintainers

+

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.

Current maintainer:

marcelsavegnago

-

This module is part of the OCA/manufacture project on GitHub.

+

This module is part of the OCA/repair project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/base_repair_config/views/res_config_settings.xml b/base_repair_config/views/res_config_settings.xml index 4b99111c..827a3c21 100644 --- a/base_repair_config/views/res_config_settings.xml +++ b/base_repair_config/views/res_config_settings.xml @@ -3,41 +3,32 @@ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> + res.config.settings.view.form.inherit.repair res.config.settings + - -
-

Repair

-
-
-
+ + + + +
- General Settings - ir.actions.act_window + Repair Settings res.config.settings form inline - {'module' : 'repair'} + {'module': 'repair', 'bin_size': False}