diff --git a/README.md b/README.md index e3d1080a22c3..10bf57c091ee 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ addon | version | maintainers | summary [web_notify](web_notify/) | 18.0.1.1.0 | | Send notification messages to user [web_notify_channel_message](web_notify_channel_message/) | 18.0.1.0.0 | | Send an instant notification to channel users when a new message is posted [web_notify_upgrade](web_notify_upgrade/) | 18.0.1.0.0 | | Notify active users when a module is installed or updated -[web_pivot_computed_measure](web_pivot_computed_measure/) | 18.0.1.0.4 | CarlosRoca13 | Web Pivot Computed Measure +[web_pivot_computed_measure](web_pivot_computed_measure/) | 18.0.1.0.5 | CarlosRoca13 | Web Pivot Computed Measure [web_quick_start_screen](web_quick_start_screen/) | 18.0.1.0.0 | | Configurable start screen for quick actions [web_refresher](web_refresher/) | 18.0.1.0.0 | | Web Refresher [web_remember_tree_column_width](web_remember_tree_column_width/) | 18.0.1.0.1 | frahikLV luisg123v cuongnmtm | Remember the tree columns' widths across sessions. @@ -48,7 +48,7 @@ addon | version | maintainers | summary [web_search_with_and](web_search_with_and/) | 18.0.1.0.1 | | Use AND conditions on omnibar search [web_send_message_popup](web_send_message_popup/) | 18.0.1.0.0 | | Web Send Message as Popup [web_session_auto_close](web_session_auto_close/) | 18.0.1.0.1 | | Automatically logs out inactive users based on a configurable timeout. -[web_systray_button_init_action](web_systray_button_init_action/) | 18.0.1.0.1 | | Add a button to go to the user init action. +[web_systray_button_init_action](web_systray_button_init_action/) | 18.0.1.0.2 | | Add a button to go to the user init action. [web_theme_classic](web_theme_classic/) | 18.0.1.0.0 | legalsylvain | Contrasted style on fields to improve the UI. [web_timeline](web_timeline/) | 18.0.1.0.1 | tarteo | Interactive visualization chart to show events in time [web_tree_dynamic_colored_field](web_tree_dynamic_colored_field/) | 18.0.1.0.1 | | Allows you to dynamically color fields on tree views @@ -60,6 +60,7 @@ addon | version | maintainers | summary [web_widget_numeric_step](web_widget_numeric_step/) | 18.0.1.0.2 | rafaelbn yajo | Web Widget Numeric Step [web_widget_open_tab](web_widget_open_tab/) | 18.0.1.0.0 | | Allow to open record from trees on new tab from tree views [web_widget_product_label_section_and_note_name_visibility](web_widget_product_label_section_and_note_name_visibility/) | 18.0.1.0.0 | carlos-lopez-tecnativa | Alternate the visibility of the product and description. +[web_widget_url_advanced](web_widget_url_advanced/) | 18.0.1.0.0 | | This module extends URL widget for displaying anchors with custom labels. [web_widget_x2many_2d_matrix](web_widget_x2many_2d_matrix/) | 18.0.2.0.2 | JasminSForgeFlow DavidJForgeFlow hbrunn | Show list fields as a matrix [//]: # (end addons) diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml index b29201ae1e4d..afba3a6d0826 100644 --- a/setup/_metapackage/pyproject.toml +++ b/setup/_metapackage/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "odoo-addons-oca-web" -version = "18.0.20250908.1" +version = "18.0.20250917.0" dependencies = [ "odoo-addon-web_calendar_slot_duration==18.0.*", "odoo-addon-web_chatter_position==18.0.*", @@ -41,6 +41,7 @@ dependencies = [ "odoo-addon-web_widget_numeric_step==18.0.*", "odoo-addon-web_widget_open_tab==18.0.*", "odoo-addon-web_widget_product_label_section_and_note_name_visibility==18.0.*", + "odoo-addon-web_widget_url_advanced==18.0.*", "odoo-addon-web_widget_x2many_2d_matrix==18.0.*", ] classifiers=[ diff --git a/web_chatter_position/i18n/fr_BE.po b/web_chatter_position/i18n/fr_BE.po new file mode 100644 index 000000000000..9a3fe441941b --- /dev/null +++ b/web_chatter_position/i18n/fr_BE.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_chatter_position +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-09-16 08:42+0000\n" +"Last-Translator: timbreckx \n" +"Language-Team: none\n" +"Language: fr_BE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 5.10.4\n" + +#. module: web_chatter_position +#: model:ir.model.fields.selection,name:web_chatter_position.selection__res_users__chatter_position__bottom +msgid "Bottom" +msgstr "En bas" + +#. module: web_chatter_position +#: model:ir.model.fields,field_description:web_chatter_position.field_res_users__chatter_position +msgid "Chatter Position" +msgstr "Position du Chatter" + +#. module: web_chatter_position +#: model:ir.model.fields.selection,name:web_chatter_position.selection__res_users__chatter_position__auto +msgid "Responsive" +msgstr "Adaptatif" + +#. module: web_chatter_position +#: model:ir.model.fields.selection,name:web_chatter_position.selection__res_users__chatter_position__sided +msgid "Sided" +msgstr "Sur le côté" + +#. module: web_chatter_position +#: model:ir.model,name:web_chatter_position.model_res_users +msgid "User" +msgstr "Utilisateur" diff --git a/web_pivot_computed_measure/README.rst b/web_pivot_computed_measure/README.rst index 4db20da9b1bd..60ec6846c0e2 100644 --- a/web_pivot_computed_measure/README.rst +++ b/web_pivot_computed_measure/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ========================== Web Pivot Computed Measure ========================== @@ -7,13 +11,13 @@ Web Pivot Computed Measure !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:25005aee7d3923f0b851635babf9f99d15dd9cded166d8e977161ae023fa0706 + !! source digest: sha256:ab3cd4b5fcebcf88ffc1c122a3d7d2708d6e1d2ffad1cd33c62b9e688733a5d0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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 +.. |badge2| image:: https://img.shields.io/badge/license-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%2Fweb-lightgray.png?logo=github diff --git a/web_pivot_computed_measure/__manifest__.py b/web_pivot_computed_measure/__manifest__.py index 92ab25aef3fa..1b1897ffacb7 100644 --- a/web_pivot_computed_measure/__manifest__.py +++ b/web_pivot_computed_measure/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Web Pivot Computed Measure", "category": "web", - "version": "18.0.1.0.4", + "version": "18.0.1.0.5", "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", "website": "https://github.com/OCA/web", diff --git a/web_pivot_computed_measure/static/description/index.html b/web_pivot_computed_measure/static/description/index.html index 044185c46f71..5eb5c2b2ebe4 100644 --- a/web_pivot_computed_measure/static/description/index.html +++ b/web_pivot_computed_measure/static/description/index.html @@ -3,7 +3,7 @@ -Web Pivot Computed Measure +README.rst -
-

Web Pivot Computed Measure

+
+ + +Odoo Community Association + +
+

Web Pivot Computed Measure

-

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

+

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

Adds support for computed measures on the pivot view.

Table of contents

@@ -386,7 +391,7 @@

Web Pivot Computed Measure

-

Usage

+

Usage

Go to pivot view and click on the “Measures” menu, you will see a new option called ‘Computed Measure’.

You have the follow options to create a ‘computed measure’:

@@ -428,14 +433,14 @@

Usage

measure’.

-

Known issues / Roadmap

+

Known issues / Roadmap

  1. Add support to define a style for a computed measure (ex. colored)
  2. Use t-model to data-binding instead of jquery selectors
-

Bug Tracker

+

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 @@ -443,15 +448,15 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Tecnativa
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -478,5 +483,6 @@

Maintainers

+
diff --git a/web_pivot_computed_measure/static/src/test/test.esm.js b/web_pivot_computed_measure/static/src/test/test.esm.js index f02b3b320a15..b08a79ce1880 100644 --- a/web_pivot_computed_measure/static/src/test/test.esm.js +++ b/web_pivot_computed_measure/static/src/test/test.esm.js @@ -5,6 +5,7 @@ import {registry} from "@web/core/registry"; registry.category("web_tour.tours").add("web_pivot_computed_measure_tour", { url: "/odoo", + test: true, steps: () => [ { trigger: ".o_navbar_apps_menu button", diff --git a/web_responsive/i18n/tr.po b/web_responsive/i18n/tr.po index c8f221500133..3999361f621b 100644 --- a/web_responsive/i18n/tr.po +++ b/web_responsive/i18n/tr.po @@ -6,46 +6,46 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2023-03-07 08:01+0000\n" -"Last-Translator: Ediz Duman \n" +"PO-Revision-Date: 2025-09-15 16:42+0000\n" +"Last-Translator: Betül Öğmen \n" "Language-Team: none\n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.14.1\n" +"X-Generator: Weblate 5.10.4\n" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/views/form/status_bar_buttons.xml:0 #, python-format msgid "Action" -msgstr "" +msgstr "Eylem" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/menu_canonical_searchbar/searchbar.xml:0 #, python-format msgid "App Icon" -msgstr "" +msgstr "Uygulama simgesi" #. module: web_responsive #: model:ir.actions.act_window,name:web_responsive.res_users_view_form_apps_menu_preferences_action msgid "Apps Menu Preferences" -msgstr "" +msgstr "Uygulamalar Menüsü Tercihleri" #. module: web_responsive #: model:ir.model.fields,field_description:web_responsive.field_res_users__apps_menu_search_type #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "Apps Menu Search Type" -msgstr "" +msgstr "Uygulamalar Menüsü Arama Türü" #. module: web_responsive #: model:ir.model.fields,field_description:web_responsive.field_res_users__apps_menu_theme #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "Apps Menu Theme" -msgstr "" +msgstr "Uygulamalar Menü Teması" #. module: web_responsive #: model:ir.model.fields.selection,name:web_responsive.selection__res_users__apps_menu_search_type__canonical @@ -57,12 +57,12 @@ msgstr "" #: model:ir.model.fields.selection,name:web_responsive.selection__res_users__apps_menu_search_type__command_palette #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "Command Palette" -msgstr "" +msgstr "Komut Paleti" #. module: web_responsive #: model:ir.model.fields.selection,name:web_responsive.selection__res_users__apps_menu_theme__community msgid "Community" -msgstr "" +msgstr "Topluluk" #. module: web_responsive #. odoo-javascript @@ -76,18 +76,18 @@ msgstr "Vazgeç" #: code:addons/web_responsive/static/src/components/command_palette/main.xml:0 #, python-format msgid "Exit" -msgstr "" +msgstr "Çıkış" #. module: web_responsive #: model:ir.model.fields.selection,name:web_responsive.selection__res_users__apps_menu_search_type__fuse #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "Fuse" -msgstr "" +msgstr "Sigorta" #. module: web_responsive #: model:ir.model,name:web_responsive.model_ir_http msgid "HTTP Routing" -msgstr "" +msgstr "HTTP Yönlendirme" #. module: web_responsive #. odoo-javascript @@ -101,7 +101,7 @@ msgstr "Ana Menü" #: code:addons/web_responsive/static/src/components/chatter/chatter.xml:0 #, python-format msgid "Log note" -msgstr "" +msgstr "Not Ekle" #. module: web_responsive #. odoo-javascript @@ -113,7 +113,7 @@ msgstr "Büyütme" #. module: web_responsive #: model:ir.model.fields.selection,name:web_responsive.selection__res_users__apps_menu_theme__milk msgid "Milk" -msgstr "" +msgstr "Süt" #. module: web_responsive #. odoo-javascript @@ -127,24 +127,24 @@ msgstr "Küçültme" #: code:addons/web_responsive/static/src/legacy/xml/form_buttons.xml:0 #, python-format msgid "New" -msgstr "" +msgstr "Yeni" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/menu_canonical_searchbar/searchbar.xml:0 #, python-format msgid "Nothing to show" -msgstr "" +msgstr "Gösterilecek bir şey yok" #. module: web_responsive #: model:ir.model.fields,field_description:web_responsive.field_res_users__is_redirect_home msgid "Redirect to Home" -msgstr "" +msgstr "Ana Sayfaya Yönlendir" #. module: web_responsive #: model:ir.model.fields,help:web_responsive.field_res_users__is_redirect_home msgid "Redirect to dashboard after signing in" -msgstr "" +msgstr "Oturum açtıktan sonra panoya yönlendir" #. module: web_responsive #. odoo-javascript @@ -156,12 +156,12 @@ msgstr "Kaydet" #. module: web_responsive #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "Search Type" -msgstr "" +msgstr "Arama Türü" #. module: web_responsive #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "Search Type Help" -msgstr "" +msgstr "Arama Türü Yardımı" #. module: web_responsive #. odoo-javascript @@ -176,32 +176,32 @@ msgstr "Arama menüleri..." #: code:addons/web_responsive/static/src/components/chatter/chatter.xml:0 #, python-format msgid "Send message" -msgstr "" +msgstr "Mesaj Gönder" #. module: web_responsive #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "Theme" -msgstr "" +msgstr "Tema" #. module: web_responsive #: model:ir.model,name:web_responsive.model_res_users msgid "User" -msgstr "" +msgstr "Kullanıcı" #. module: web_responsive #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "a new search algorithm is used" -msgstr "" +msgstr "yeni bir arama algoritması kullanılıyor" #. module: web_responsive #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "the standard odoo search tool" -msgstr "" +msgstr "standart odoo arama aracı" #. module: web_responsive #: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences msgid "uses a standard algorithm" -msgstr "" +msgstr "standart bir algoritma kullanır" #, python-format #~ msgid "All" diff --git a/web_search_with_and/i18n/tr.po b/web_search_with_and/i18n/tr.po new file mode 100644 index 000000000000..ebd417b4f9d9 --- /dev/null +++ b/web_search_with_and/i18n/tr.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" diff --git a/web_systray_button_init_action/README.rst b/web_systray_button_init_action/README.rst index 598e2fe5e13a..de2f019afdfa 100644 --- a/web_systray_button_init_action/README.rst +++ b/web_systray_button_init_action/README.rst @@ -11,7 +11,7 @@ Web Systray Button Init Action !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:2235bf28e80008d2ccce845d7924d57b20adb6f3464e7da22c06b392dcbb36b3 + !! source digest: sha256:0b84e2aca64eea453fb258b29d299c9c61a4c76c3fd6256e69a84c6542639261 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/web_systray_button_init_action/__manifest__.py b/web_systray_button_init_action/__manifest__.py index d34fb499fdab..bac44245b3ba 100644 --- a/web_systray_button_init_action/__manifest__.py +++ b/web_systray_button_init_action/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Web Systray Button Init Action", "summary": "Add a button to go to the user init action.", - "version": "18.0.1.0.1", + "version": "18.0.1.0.2", "category": "Web", "website": "https://github.com/OCA/web", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/web_systray_button_init_action/static/description/index.html b/web_systray_button_init_action/static/description/index.html index ca0337e36e32..9d78ceaaa967 100644 --- a/web_systray_button_init_action/static/description/index.html +++ b/web_systray_button_init_action/static/description/index.html @@ -372,7 +372,7 @@

Web Systray Button Init Action

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:2235bf28e80008d2ccce845d7924d57b20adb6f3464e7da22c06b392dcbb36b3 +!! source digest: sha256:0b84e2aca64eea453fb258b29d299c9c61a4c76c3fd6256e69a84c6542639261 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module adds a button to the navbar to navigate to the initial diff --git a/web_systray_button_init_action/static/src/tours/tour.esm.js b/web_systray_button_init_action/static/src/tours/tour.esm.js index 88206546386c..1b632b0879a6 100644 --- a/web_systray_button_init_action/static/src/tours/tour.esm.js +++ b/web_systray_button_init_action/static/src/tours/tour.esm.js @@ -6,6 +6,7 @@ import {stepUtils} from "@web_tour/tour_service/tour_utils"; registry.category("web_tour.tours").add("web_systray_button_init_action_not_set_tour", { url: "/web", + test: true, steps: () => [ { trigger: ":not(:has(button[name='init_action']))", @@ -14,6 +15,7 @@ registry.category("web_tour.tours").add("web_systray_button_init_action_not_set_ }); registry.category("web_tour.tours").add("web_systray_button_init_action_set_tour", { url: "/web", + test: true, steps: () => [ { trigger: ".init_action_div:has(button[name='init_action'])", diff --git a/web_widget_dropdown_dynamic/i18n/tr.po b/web_widget_dropdown_dynamic/i18n/tr.po new file mode 100644 index 000000000000..2e5d9d7d6086 --- /dev/null +++ b/web_widget_dropdown_dynamic/i18n/tr.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_widget_dropdown_dynamic +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-09-16 06:25+0000\n" +"Last-Translator: Betül Öğmen \n" +"Language-Team: none\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.10.4\n" + +#. module: web_widget_dropdown_dynamic +#: model:ir.model.fields,field_description:web_widget_dropdown_dynamic.field_dynamic_dropdown_int +msgid "Dropdown Integer" +msgstr "Açılır Tamsayı" + +#. module: web_widget_dropdown_dynamic +#. odoo-javascript +#: code:addons/web_widget_dropdown_dynamic/static/src/js/field_dynamic_dropdown.esm.js:0 +msgid "Dynamic Dropdown" +msgstr "Dinamik Açılır Menü" + +#. module: web_widget_dropdown_dynamic +#: model:ir.model,name:web_widget_dropdown_dynamic.model_ir_filters +msgid "Filters" +msgstr "Filtreler" diff --git a/web_widget_url_advanced/README.rst b/web_widget_url_advanced/README.rst new file mode 100644 index 000000000000..5b1f997d4590 --- /dev/null +++ b/web_widget_url_advanced/README.rst @@ -0,0 +1,146 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +======================= +Web URL widget advanced +======================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:8390450f4787bfcef6bcf0da87974bc964fe6e8621d110430885912514941c4a + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github + :target: https://github.com/OCA/web/tree/18.0/web_widget_url_advanced + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_widget_url_advanced + :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/web&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Extend URL, CopyClipboardURL widget features to ease customization of +anchor's text. + +By default, the URL, CopyClipboardURL widget will show the plain URL. +You can specify an attribute to provide a static label too. + +With this module, you can use a field for link's inner text using +attribute 'text_field'. You can also add a prefix to the link using +attribute 'prefix_name'. + +Until 13.0 this functionality was separated in modules +'web_widget_url_advanced' and 'web_widget_prefixed_url' + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Use url, CopyClipboardURL widget as you do usually, then add an extra +parameter text\_ field to indicate which field (present in the view +already) must be used for the anchor text. + +.. code:: xml + + + +M2O fields are supported: display_name is used automatically. + +For example, in the partner form, if you want to display the website +link with partner's name as anchor you can do: + +.. code:: xml + + + +This is going to change the rendering from + +|image1| + +to + +|image2| + +Or user can add any hyperlink text using 'prefix_name' attribute + +.. code:: xml + + + +both can be applied inside the options attribute too: + +.. code:: xml + + + +.. |image1| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_widget_url_advanced/static/description/before.png +.. |image2| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_widget_url_advanced/static/description/after.png + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Camptocamp + +Contributors +------------ + +- Simone Orsi +- `CorporateHub `__ + + - Alexey Pelykh + +- Jay Vora +- Swapnesh Shah +- Joan Sisquella +- Peerapong Supasompob +- Nedas Žilinskas +- `Komit `__: + + - Vang Nguyen Phu + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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/web `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_widget_url_advanced/__init__.py b/web_widget_url_advanced/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/web_widget_url_advanced/__manifest__.py b/web_widget_url_advanced/__manifest__.py new file mode 100644 index 000000000000..7eae904a80f4 --- /dev/null +++ b/web_widget_url_advanced/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2018 Simone Orsi - Camptocamp SA +# License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html). +{ + "name": "Web URL widget advanced", + "summary": "This module extends URL widget " + "for displaying anchors with custom labels.", + "category": "Web", + "version": "18.0.1.0.0", + "license": "LGPL-3", + "author": "Camptocamp, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/web", + "depends": ["web"], + "data": [], + "assets": { + "web.assets_backend": [ + "web_widget_url_advanced/static/src/fields/**/*", + ], + }, + "installable": True, +} diff --git a/web_widget_url_advanced/i18n/es.po b/web_widget_url_advanced/i18n/es.po new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/web_widget_url_advanced/i18n/web_widget_url_advanced.pot b/web_widget_url_advanced/i18n/web_widget_url_advanced.pot new file mode 100644 index 000000000000..aadee09bfeda --- /dev/null +++ b/web_widget_url_advanced/i18n/web_widget_url_advanced.pot @@ -0,0 +1,13 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \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" diff --git a/web_widget_url_advanced/i18n/zh_CN.po b/web_widget_url_advanced/i18n/zh_CN.po new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/web_widget_url_advanced/pyproject.toml b/web_widget_url_advanced/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/web_widget_url_advanced/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_widget_url_advanced/readme/CONTRIBUTORS.md b/web_widget_url_advanced/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..a3a09cf398c7 --- /dev/null +++ b/web_widget_url_advanced/readme/CONTRIBUTORS.md @@ -0,0 +1,10 @@ +- Simone Orsi \<\> +- [CorporateHub](https://corporatehub.eu/) + - Alexey Pelykh \<\> +- Jay Vora \<\> +- Swapnesh Shah \<\> +- Joan Sisquella \<\> +- Peerapong Supasompob \<\> +- Nedas Žilinskas \<\> +- [Komit](https://komit-consulting.com): + - Vang Nguyen Phu diff --git a/web_widget_url_advanced/readme/DESCRIPTION.md b/web_widget_url_advanced/readme/DESCRIPTION.md new file mode 100644 index 000000000000..78c2973ca795 --- /dev/null +++ b/web_widget_url_advanced/readme/DESCRIPTION.md @@ -0,0 +1,11 @@ +Extend URL, CopyClipboardURL widget features to ease customization of anchor's text. + +By default, the URL, CopyClipboardURL widget will show the plain URL. You can specify an +attribute to provide a static label too. + +With this module, you can use a field for link's inner text using +attribute 'text_field'. You can also add a prefix to the link using +attribute 'prefix_name'. + +Until 13.0 this functionality was separated in modules +'web_widget_url_advanced' and 'web_widget_prefixed_url' diff --git a/web_widget_url_advanced/readme/USAGE.md b/web_widget_url_advanced/readme/USAGE.md new file mode 100644 index 000000000000..b4eaab404e28 --- /dev/null +++ b/web_widget_url_advanced/readme/USAGE.md @@ -0,0 +1,36 @@ +Use url, CopyClipboardURL widget as you do usually, then add an extra parameter text_ +field to indicate which field (present in the view already) must be used for +the anchor text. + +``` xml + +``` + +M2O fields are supported: display_name is used automatically. + +For example, in the partner form, if you want to display the website +link with partner's name as anchor you can do: + +``` xml + +``` + +This is going to change the rendering from + +![](../static/description/before.png) + +to + +![](../static/description/after.png) + +Or user can add any hyperlink text using 'prefix_name' attribute + +``` xml + +``` + +both can be applied inside the options attribute too: + +``` xml + +``` diff --git a/web_widget_url_advanced/static/description/after.png b/web_widget_url_advanced/static/description/after.png new file mode 100644 index 000000000000..fff2176e77f8 Binary files /dev/null and b/web_widget_url_advanced/static/description/after.png differ diff --git a/web_widget_url_advanced/static/description/before.png b/web_widget_url_advanced/static/description/before.png new file mode 100644 index 000000000000..10d6fc764ec6 Binary files /dev/null and b/web_widget_url_advanced/static/description/before.png differ diff --git a/web_widget_url_advanced/static/description/icon.png b/web_widget_url_advanced/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/web_widget_url_advanced/static/description/icon.png differ diff --git a/web_widget_url_advanced/static/description/index.html b/web_widget_url_advanced/static/description/index.html new file mode 100644 index 000000000000..acb3a00e9a38 --- /dev/null +++ b/web_widget_url_advanced/static/description/index.html @@ -0,0 +1,478 @@ + + + + + +README.rst + + + +

+ + + +Odoo Community Association + +
+

Web URL widget advanced

+ +

Beta License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

Extend URL, CopyClipboardURL widget features to ease customization of +anchor’s text.

+

By default, the URL, CopyClipboardURL widget will show the plain URL. +You can specify an attribute to provide a static label too.

+

With this module, you can use a field for link’s inner text using +attribute ‘text_field’. You can also add a prefix to the link using +attribute ‘prefix_name’.

+

Until 13.0 this functionality was separated in modules +‘web_widget_url_advanced’ and ‘web_widget_prefixed_url’

+

Table of contents

+ +
+

Usage

+

Use url, CopyClipboardURL widget as you do usually, then add an extra +parameter text_ field to indicate which field (present in the view +already) must be used for the anchor text.

+
+<field name="some_url" widget="url" text_field="another_field" />
+
+

M2O fields are supported: display_name is used automatically.

+

For example, in the partner form, if you want to display the website +link with partner’s name as anchor you can do:

+
+<field name="website" widget="url" text_field="name" placeholder="e.g. www.odoo.com"/>
+
+

This is going to change the rendering from

+

image1

+

to

+

image2

+

Or user can add any hyperlink text using ‘prefix_name’ attribute

+
+<field name="skype_name" widget="url" prefix_name="skype"/>
+
+

both can be applied inside the options attribute too:

+
+<field name="skype_name" widget="url" options="{'prefix_name': 'skype'}"/>
+
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +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/web project on GitHub.

+

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

+
+
+
+
+ + diff --git a/web_widget_url_advanced/static/src/fields/url_field.esm.js b/web_widget_url_advanced/static/src/fields/url_field.esm.js new file mode 100644 index 000000000000..b17c32c1b2f6 --- /dev/null +++ b/web_widget_url_advanced/static/src/fields/url_field.esm.js @@ -0,0 +1,59 @@ +/* Copyright 2018 Simone Orsi - Camptocamp SA +License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html). */ + +import {UrlField, formUrlField, urlField} from "@web/views/fields/url/url_field"; +import {copyClipboardURLField} from "@web/views/fields/copy_clipboard/copy_clipboard_field"; +import {patch} from "@web/core/utils/patch"; + +const AdvancedUrlFieldProps = { + text_field: {type: String, optional: true}, + prefix_name: {type: String, optional: true}, +}; + +patch(UrlField.props, AdvancedUrlFieldProps); +patch(copyClipboardURLField.component.props, AdvancedUrlFieldProps); + +patch(UrlField.prototype, { + _get_text_field() { + if (this.props.text_field) { + let field_value = this.props.record.data[this.props.text_field]; + if (Array.isArray(field_value) && field_value.length === 2) { + field_value = field_value[1]; + } + return field_value; + } + return false; + }, + + get title() { + return ( + this._get_text_field() || + this.props.text || + this.props.record.data[this.props.name] || + "" + ); + }, + + get formattedHrefWithPrefix() { + let value = this.formattedHref; + + if (this.props.prefix_name) { + value = this.props.prefix_name + ":" + value; + } + + return value; + }, +}); + +const patchExtractProps = () => ({ + extractProps({attrs, options}) { + const props = super.extractProps(...arguments); + props.text_field = attrs.text_field || options.text_field; + props.prefix_name = attrs.prefix_name || options.prefix_name; + return props; + }, +}); + +patch(urlField, patchExtractProps()); +patch(formUrlField, patchExtractProps()); +patch(copyClipboardURLField, patchExtractProps()); diff --git a/web_widget_url_advanced/static/src/fields/url_field.xml b/web_widget_url_advanced/static/src/fields/url_field.xml new file mode 100644 index 000000000000..f54386a2971f --- /dev/null +++ b/web_widget_url_advanced/static/src/fields/url_field.xml @@ -0,0 +1,26 @@ + + + + + + title + formattedHrefWithPrefix + + + + + + title + formattedHrefWithPrefix + + + +