diff --git a/README.md b/README.md index 9addd0aee9ae..f616063055f4 100644 --- a/README.md +++ b/README.md @@ -23,32 +23,32 @@ addon | version | maintainers | summary --- | --- | --- | --- [web_calendar_slot_duration](web_calendar_slot_duration/) | 19.0.1.0.0 | Yajo | Customizable calendar slot durations [web_chatter_position](web_chatter_position/) | 19.0.1.0.1 | trisdoan | Add an option to change the chatter position -[web_company_color](web_company_color/) | 19.0.1.0.0 | | Web Company Color +[web_company_color](web_company_color/) | 19.0.1.0.1 | | Web Company Color [web_company_context_highlight](web_company_context_highlight/) | 19.0.1.0.0 | pverkest | Highlight the company switcher when multiple companies are selected [web_dark_mode](web_dark_mode/) | 19.0.1.0.0 | | Enabled Dark Mode for the Odoo Backend [web_date_format_numeric](web_date_format_numeric/) | 19.0.1.0.0 | | Display all date/datetime fields in numeric format -[web_dialog_size](web_dialog_size/) | 19.0.1.0.2 | | A module that lets the user expand a dialog box to the full screen width. +[web_dialog_size](web_dialog_size/) | 19.0.1.0.3 | | A module that lets the user expand a dialog box to the full screen width. [web_editor_class_selector](web_editor_class_selector/) | 19.0.1.0.0 | carlos-lopez-tecnativa | Web editor class selector [web_environment_ribbon](web_environment_ribbon/) | 19.0.1.0.0 | | Web Environment Ribbon [web_favicon](web_favicon/) | 19.0.1.0.1 | | Allows to set a custom shortcut icon (aka favicon) [web_filter_header_button](web_filter_header_button/) | 19.0.1.0.0 | | Show selected filters as buttons in the control panel -[web_form_banner](web_form_banner/) | 19.0.1.0.0 | yostashiro aungkokolin1997 | Show configurable, rule-based alert banners on backend form views +[web_form_banner](web_form_banner/) | 19.0.1.0.1 | yostashiro aungkokolin1997 | Show configurable, rule-based alert banners on backend form views [web_group_expand](web_group_expand/) | 19.0.1.0.0 | | Group Expand Buttons [web_ir_actions_act_multi](web_ir_actions_act_multi/) | 19.0.1.0.0 | | Enables triggering of more than one action on ActionManager [web_ir_actions_act_window_message](web_ir_actions_act_window_message/) | 19.0.1.0.0 | hbrunn | Show a message box to users -[web_m2x_options](web_m2x_options/) | 19.0.1.0.1 | | web_m2x_options +[web_m2x_options](web_m2x_options/) | 19.0.1.0.2 | | web_m2x_options [web_m2x_options_manager](web_m2x_options_manager/) | 19.0.1.0.0 | | Adds an interface to manage the "Create" and "Create and Edit" options for specific models and fields. [web_no_bubble](web_no_bubble/) | 19.0.1.0.0 | | Remove the bubbles from the web interface [web_notify](web_notify/) | 19.0.1.0.1 | | Send notification messages to user [web_notify_upgrade](web_notify_upgrade/) | 19.0.1.0.0 | | Notify active users when a module is installed or updated [web_pwa_customize](web_pwa_customize/) | 19.0.1.0.0 | victoralmau | Web Pwa Customize [web_quick_start_screen](web_quick_start_screen/) | 19.0.1.0.0 | | Configurable start screen for quick actions -[web_refresher](web_refresher/) | 19.0.1.0.0 | | Web Refresher +[web_refresher](web_refresher/) | 19.0.1.0.1 | | Web Refresher [web_remember_tree_column_width](web_remember_tree_column_width/) | 19.0.1.0.0 | frahikLV luisg123v cuongnmtm | Remember the tree columns' widths across sessions. [web_responsive](web_responsive/) | 19.0.1.1.1 | Tardo SplashS | Responsive web client, community-supported [web_search_deactivate_autosearch](web_search_deactivate_autosearch/) | 19.0.1.0.0 | samirGuesmi AnizR | Allow user to deactivate autosearch to add multiple filters [web_search_with_and](web_search_with_and/) | 19.0.1.0.0 | | Use AND conditions on omnibar search -[web_timeline](web_timeline/) | 19.0.1.0.0 | | Interactive visualization chart to show events in time +[web_timeline](web_timeline/) | 19.0.1.0.1 | | Interactive visualization chart to show events in time [web_tree_many2one_clickable](web_tree_many2one_clickable/) | 19.0.1.1.0 | | Open the linked resource when clicking on their name [web_widget_bokeh_chart](web_widget_bokeh_chart/) | 19.0.1.0.1 | LoisRForgeFlow JasminSForgeFlow | This widget allows to display charts using Bokeh library. [web_widget_domain_editor_dialog](web_widget_domain_editor_dialog/) | 19.0.1.0.0 | | Recovers the Domain Editor Dialog functionality diff --git a/web_company_color/README.rst b/web_company_color/README.rst index 57e444e24caa..461e8634b5be 100644 --- a/web_company_color/README.rst +++ b/web_company_color/README.rst @@ -11,7 +11,7 @@ Web Company Color !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:238dbb5fcd4a1b17f5fb8c0663c60295a2c26b9162bb189a92cb5b26de1ba1ba + !! source digest: sha256:0f1eb8f1ca049c84a04c76f7dd8ee3bfc56c1bfcf0ab523f2c1e16f035acd639 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -90,6 +90,12 @@ Contributors - Bhavesh Heliconia +- `PyTech `__: + + - Simone Rubino + +- Marwan Behillil + Maintainers ----------- diff --git a/web_company_color/__manifest__.py b/web_company_color/__manifest__.py index 08fc9708c6d3..676fffa5748a 100644 --- a/web_company_color/__manifest__.py +++ b/web_company_color/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Web Company Color", "category": "web", - "version": "19.0.1.0.0", + "version": "19.0.1.0.1", "author": "Alexandre Díaz, Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", "depends": ["web", "base_sparse_field"], diff --git a/web_company_color/i18n/ca.po b/web_company_color/i18n/ca.po index 2f64a6b7d597..29dc62470713 100644 --- a/web_company_color/i18n/ca.po +++ b/web_company_color/i18n/ca.po @@ -25,6 +25,13 @@ msgid "" " the page." msgstr "" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "" +"Esteu segur que voleu restablir tots els colors als valors predeterminats " +"d'Odoo?" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -65,6 +72,18 @@ msgstr "" msgid "Compute colors from logo" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__display_name +#: model:ir.model.fields,field_description:web_company_color.field_res_company__display_name +msgid "Display Name" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__id +#: model:ir.model.fields,field_description:web_company_color.field_res_company__id +msgid "ID" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text msgid "Link Text Color" @@ -85,6 +104,11 @@ msgstr "" msgid "Navbar Background Color Hover" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -95,6 +119,11 @@ msgstr "" msgid "Qweb" msgstr "" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "Restableix els colors" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" diff --git a/web_company_color/i18n/de.po b/web_company_color/i18n/de.po index 4f2de1e13084..9785a6757425 100644 --- a/web_company_color/i18n/de.po +++ b/web_company_color/i18n/de.po @@ -29,6 +29,13 @@ msgstr "" "Sie bitte\n" " die Seite." +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "" +"Sind Sie sicher, dass Sie alle Farben auf die Odoo-Standardwerte " +"zurücksetzen möchten?" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -69,6 +76,18 @@ msgstr "Unternehmensstile" msgid "Compute colors from logo" msgstr "Farben aus Logo generieren" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__display_name +#: model:ir.model.fields,field_description:web_company_color.field_res_company__display_name +msgid "Display Name" +msgstr "Anzeigename" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__id +#: model:ir.model.fields,field_description:web_company_color.field_res_company__id +msgid "ID" +msgstr "ID" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text msgid "Link Text Color" @@ -89,6 +108,11 @@ msgstr "Navbar-Hintergrundfarbe" msgid "Navbar Background Color Hover" msgstr "Navbar Hintergrundfarbe Hover" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -99,6 +123,11 @@ msgstr "Navbar Textfarbe" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "Farben zurücksetzen" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" @@ -123,11 +152,5 @@ msgstr "" #~ "aktualisieren Sie bitte\n" #~ " Sie die Seite." -#~ msgid "Display Name" -#~ msgstr "Anzeigename" - -#~ msgid "ID" -#~ msgstr "ID" - #~ msgid "Last Modified on" #~ msgstr "Zuletzt bearbeitet am" diff --git a/web_company_color/i18n/es.po b/web_company_color/i18n/es.po index 6a77cc347908..d7d9a5234547 100644 --- a/web_company_color/i18n/es.po +++ b/web_company_color/i18n/es.po @@ -29,6 +29,13 @@ msgstr "" " Para que los cambios surtan efecto, actualice\n" " la página." +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "" +"¿Está seguro de que desea restablecer todos los colores a los valores " +"predeterminados de Odoo?" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -69,6 +76,18 @@ msgstr "Estilos de compañía" msgid "Compute colors from logo" msgstr "Calcular colores a partir del logo" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__display_name +#: model:ir.model.fields,field_description:web_company_color.field_res_company__display_name +msgid "Display Name" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__id +#: model:ir.model.fields,field_description:web_company_color.field_res_company__id +msgid "ID" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text msgid "Link Text Color" @@ -89,6 +108,11 @@ msgstr "Color de fondo de la barra de navegación" msgid "Navbar Background Color Hover" msgstr "Desplazamiento del color de fondo de la barra de navegación" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -99,6 +123,11 @@ msgstr "Color de texto de la barra de navegación" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "Restablecer colores" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" diff --git a/web_company_color/i18n/fr.po b/web_company_color/i18n/fr.po index 353aa82db2d2..2fc7f59a9fa6 100644 --- a/web_company_color/i18n/fr.po +++ b/web_company_color/i18n/fr.po @@ -29,6 +29,13 @@ msgstr "" "d'actualiser\n" " la page." +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "" +"Êtes-vous sûr de vouloir réinitialiser toutes les couleurs aux valeurs par " +"défaut d'Odoo ?" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -69,6 +76,18 @@ msgstr "Styles de la société" msgid "Compute colors from logo" msgstr "Déterminer les couleurs à partir du logo" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__display_name +#: model:ir.model.fields,field_description:web_company_color.field_res_company__display_name +msgid "Display Name" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__id +#: model:ir.model.fields,field_description:web_company_color.field_res_company__id +msgid "ID" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text msgid "Link Text Color" @@ -89,6 +108,11 @@ msgstr "Couleur de fond de la barre de navigation" msgid "Navbar Background Color Hover" msgstr "Couleur de fond de la barre de navigation (survol)" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -99,6 +123,11 @@ msgstr "Couleur du texte de la barre de navigation" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "Réinitialiser les couleurs" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" diff --git a/web_company_color/i18n/hr.po b/web_company_color/i18n/hr.po index ba43ab6ee956..73b898a5cf8e 100644 --- a/web_company_color/i18n/hr.po +++ b/web_company_color/i18n/hr.po @@ -26,6 +26,12 @@ msgid "" " the page." msgstr "" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "" +"Jeste li sigurni da želite poništiti sve boje na Odoo zadane vrijednosti?" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -66,6 +72,18 @@ msgstr "Stilovi tvrtke" msgid "Compute colors from logo" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__display_name +#: model:ir.model.fields,field_description:web_company_color.field_res_company__display_name +msgid "Display Name" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__id +#: model:ir.model.fields,field_description:web_company_color.field_res_company__id +msgid "ID" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text msgid "Link Text Color" @@ -86,6 +104,11 @@ msgstr "Boja pozadine Navigacijske trake" msgid "Navbar Background Color Hover" msgstr "Poja pozadine navigacijske trake (hoover)" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -96,6 +119,11 @@ msgstr "Boja teksta navigacijske trake" msgid "Qweb" msgstr "" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "Poništi boje" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" diff --git a/web_company_color/i18n/it.po b/web_company_color/i18n/it.po index 8ba2741fa715..d81c0127d49b 100644 --- a/web_company_color/i18n/it.po +++ b/web_company_color/i18n/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2025-01-10 14:06+0000\n" +"PO-Revision-Date: 2026-10-30 08:50+0000\n" "Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 5.6.2\n" +"X-Generator: Weblate 5.15.2\n" #. module: web_company_color #: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form @@ -28,6 +28,13 @@ msgstr "" " Affinché la modifica abbia effetto, ricaricare\n" " la pagina." +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "" +"Si è sicuri di voler reimpostare tutti i colori ai valori predefiniti di " +"Odoo?" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -68,6 +75,18 @@ msgstr "Stili Aziendali" msgid "Compute colors from logo" msgstr "Calcola colori dal logo" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__display_name +#: model:ir.model.fields,field_description:web_company_color.field_res_company__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__id +#: model:ir.model.fields,field_description:web_company_color.field_res_company__id +msgid "ID" +msgstr "ID" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text msgid "Link Text Color" @@ -88,6 +107,11 @@ msgstr "Sfondo Barra Navigazione" msgid "Navbar Background Color Hover" msgstr "Colore Hover Sfondo Barra Navigazione" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "Colore bordo inferiore barra navigazione" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -98,6 +122,11 @@ msgstr "Colori Testo Barra Navigazione" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "Reimposta colori" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" diff --git a/web_company_color/i18n/nl.po b/web_company_color/i18n/nl.po index 854b597db379..f804fdaa8a8e 100644 --- a/web_company_color/i18n/nl.po +++ b/web_company_color/i18n/nl.po @@ -29,6 +29,13 @@ msgstr "" "alstublieft\n" " de pagina." +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "" +"Weet u zeker dat u alle kleuren wilt terugzetten naar de Odoo-" +"standaardwaarden?" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -69,6 +76,18 @@ msgstr "Bedrijfsstijlen" msgid "Compute colors from logo" msgstr "Genereer kleuren vanuit het logo" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__display_name +#: model:ir.model.fields,field_description:web_company_color.field_res_company__display_name +msgid "Display Name" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__id +#: model:ir.model.fields,field_description:web_company_color.field_res_company__id +msgid "ID" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text msgid "Link Text Color" @@ -89,6 +108,11 @@ msgstr "Navigatiebalk Achtergrondkleur" msgid "Navbar Background Color Hover" msgstr "Navigatiebalk Achtergrondkleur (als je de muis er overheen beweegt)" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -99,6 +123,11 @@ msgstr "Navigatiebalk Tekstkleuren" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "Kleuren herstellen" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" diff --git a/web_company_color/i18n/pt.po b/web_company_color/i18n/pt.po index a707ece0a95c..9247a5248cbf 100644 --- a/web_company_color/i18n/pt.po +++ b/web_company_color/i18n/pt.po @@ -28,6 +28,13 @@ msgstr "" " Para que as alterações entrem em vigor, atualize\n" " a página." +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "" +"Tem a certeza de que pretende repor todas as cores para os valores " +"predefinidos do Odoo?" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -68,6 +75,18 @@ msgstr "Estilos da Empresa" msgid "Compute colors from logo" msgstr "Calcular cores a partir do logotipo" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__display_name +#: model:ir.model.fields,field_description:web_company_color.field_res_company__display_name +msgid "Display Name" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__id +#: model:ir.model.fields,field_description:web_company_color.field_res_company__id +msgid "ID" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text msgid "Link Text Color" @@ -88,6 +107,11 @@ msgstr "Cor de Fundo da Barra de Navegação" msgid "Navbar Background Color Hover" msgstr "Cor de Fundo da Barra de Navegação com Foco" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -98,6 +122,11 @@ msgstr "Cor do Texto da Barra de Navegação" msgid "Qweb" msgstr "QWeb" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "Repor cores" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" diff --git a/web_company_color/i18n/web_company_color.pot b/web_company_color/i18n/web_company_color.pot index 1a473c7f5d74..76367796e95c 100644 --- a/web_company_color/i18n/web_company_color.pot +++ b/web_company_color/i18n/web_company_color.pot @@ -21,6 +21,11 @@ msgid "" " the page." msgstr "" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -93,6 +98,11 @@ msgstr "" msgid "Navbar Background Color Hover" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -103,6 +113,11 @@ msgstr "" msgid "Qweb" msgstr "" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" diff --git a/web_company_color/i18n/zh_CN.po b/web_company_color/i18n/zh_CN.po index 1a1d86541cd0..9c446a2c4105 100644 --- a/web_company_color/i18n/zh_CN.po +++ b/web_company_color/i18n/zh_CN.po @@ -25,6 +25,11 @@ msgid "" " the page." msgstr "" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Are you sure you want to reset all colors to Odoo defaults?" +msgstr "您确定要将所有颜色重置为Odoo默认值吗?" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg msgid "Button Background Color" @@ -65,6 +70,18 @@ msgstr "公司风格" msgid "Compute colors from logo" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__display_name +#: model:ir.model.fields,field_description:web_company_color.field_res_company__display_name +msgid "Display Name" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_ir_qweb__id +#: model:ir.model.fields,field_description:web_company_color.field_res_company__id +msgid "ID" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text msgid "Link Text Color" @@ -85,6 +102,11 @@ msgstr "导航栏背景颜色" msgid "Navbar Background Color Hover" msgstr "导航栏鼠标悬停背景颜色" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_border_bottom +msgid "Navbar Bottom Border Color" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -95,6 +117,11 @@ msgstr "导航栏文字颜色" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Reset colors" +msgstr "重置颜色" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp msgid "SCSS Modif. Timestamp" diff --git a/web_company_color/models/ir_qweb.py b/web_company_color/models/ir_qweb.py index 523d0d8cd85e..9353cdae2890 100644 --- a/web_company_color/models/ir_qweb.py +++ b/web_company_color/models/ir_qweb.py @@ -8,48 +8,22 @@ class QWeb(models.AbstractModel): _inherit = "ir.qweb" - def _generate_asset_links_cache( - self, bundle, css=True, js=True, assets_params=None, rtl=False, autoprefix=False - ): - res = super()._generate_asset_links_cache( - bundle, - css=css, - js=js, - assets_params=assets_params, - rtl=rtl, - autoprefix=autoprefix, - ) - if bundle == "web_company_color.company_color_assets": - asset = AssetsBundleCompanyColor( - bundle, [], env=self.env, css=True, js=True - ) - res += [asset.get_company_color_asset_node()] - return res + def _get_asset_links(self, bundle, css=True, js=True, debug=None, autoprefix=False): + """Inject the active company scss. - def _generate_asset_links( - self, - bundle, - css=True, - js=True, - debug_assets=False, - assets_params=None, - rtl=False, - autoprefix=False, - ): - res = super()._generate_asset_links( - bundle, - css=css, - js=js, - debug_assets=debug_assets, - assets_params=assets_params, - rtl=rtl, - autoprefix=autoprefix, + This must be done outside of the cached methods + (``_generate_asset_links_cache``), because their cache key does not + depend on the company and the cached list is shared by all requests. + """ + res = super()._get_asset_links( + bundle, css=css, js=js, debug=debug, autoprefix=autoprefix ) if bundle == "web_company_color.company_color_assets": asset = AssetsBundleCompanyColor( bundle, [], env=self.env, css=True, js=True ) - res += [asset.get_company_color_asset_node()] + # Build a new list to not alter the (possibly cached) one + res = res + [asset.get_company_color_asset_node()] return res def _get_asset_content(self, bundle, assets_params=None): diff --git a/web_company_color/models/res_company.py b/web_company_color/models/res_company.py index 0dc6d2147192..9c4af02e8873 100644 --- a/web_company_color/models/res_company.py +++ b/web_company_color/models/res_company.py @@ -5,6 +5,8 @@ from odoo import api, fields, models +from odoo.addons.base.models.assetsbundle import ScssStylesheetAsset + from ..utils import convert_to_image, image_to_rgb, n_rgb_to_hex URL_BASE = "/web_company_color/static/src/scss/" @@ -14,10 +16,12 @@ class ResCompany(models.Model): _inherit = "res.company" - SCSS_TEMPLATE = """ + def _get_scss_template(self): + return """ .o_main_navbar { background: %(color_navbar_bg)s !important; background-color: %(color_navbar_bg)s !important; + border-bottom: 1px solid %(color_navbar_border_bottom)s !important; color: %(color_navbar_text)s !important; .show { @@ -25,41 +29,23 @@ class ResCompany(models.Model): background-color: %(color_navbar_bg_hover)s !important; } } - - > ul { - > li { - > a, > label { - color: %(color_navbar_text)s !important; - - &:hover, &:focus, &:active, &:focus:active { - background-color: %(color_navbar_bg_hover)s !important; - } - } - } - } } - .o_menu_brand { + .o_main_navbar .o_menu_brand { + color: rgba(%(color_navbar_text)s, 0.9) !important; + &:hover, &:focus, &:active, &:focus:active { + background: none !important; color: %(color_navbar_text)s !important; - &:hover, &:focus, &:active, &:focus:active { - background-color: %(color_navbar_bg_hover)s !important; - } - } - - a[href], - a[tabindex], - .btn-link, - .o_external_button { - color: %(color_link_text)s; - .o_main_navbar { - color: none; - } } + } + a[href], + a[tabindex], + .btn-link, + .o_external_button { + color: %(color_link_text)s; + } a:hover, .btn-link:hover { color: %(color_link_text_hover)s; - .o_main_navbar { - color: none; - } } .btn-primary:not(.disabled), .ui-autocomplete .ui-menu-item > a.ui-state-active { @@ -85,12 +71,12 @@ class ResCompany(models.Model): .o_form_view .oe_button_box .oe_stat_button > span .o_stat_value { color: %(color_link_text)s !important; } - .o_form_view .o_form_statusbar > .o_statusbar_status > - .o_arrow_button.btn-primary.disabled { + .o_form_view .o_form_statusbar .o_statusbar_status + .o_arrow_button.o_arrow_button_current { color: %(color_link_text)s !important; } .o_required_modifier{ - :focus-within { + &:focus-within { --o-input-border-color: %(color_button_bg)s !important; --o-caret-color: %(color_button_bg)s !important; } @@ -106,6 +92,7 @@ class ResCompany(models.Model): &:hover, &:focus, &:active, &:focus:active { background-color: %(color_navbar_bg_hover)s !important; } + border-bottom: 1px solid %(color_navbar_border_bottom)s !important; } .o_menu_sections .dropdown-toggle { background: %(color_navbar_bg)s !important; @@ -114,6 +101,7 @@ class ResCompany(models.Model): &:hover, &:focus, &:active, &:focus:active { background-color: %(color_navbar_bg_hover)s !important; } + border-bottom: 1px solid %(color_navbar_border_bottom)s !important; } .o_menu_systray button{ color: %(color_navbar_text)s !important; @@ -131,6 +119,9 @@ class ResCompany(models.Model): color_navbar_bg_hover = fields.Char( "Navbar Background Color Hover", sparse="company_colors" ) + color_navbar_border_bottom = fields.Char( + "Navbar Bottom Border Color", sparse="company_colors" + ) color_navbar_text = fields.Char("Navbar Text Color", sparse="company_colors") color_button_text = fields.Char("Button Text Color", sparse="company_colors") color_button_bg = fields.Char("Button Background Color", sparse="company_colors") @@ -159,24 +150,22 @@ def unlink(self): return super().unlink() def write(self, values): - if not self.env.context.get("ignore_company_color", False): - fields_to_check = ( - "color_navbar_bg", - "color_navbar_bg_hover", - "color_navbar_text", - "color_button_bg", - "color_button_bg_hover", - "color_button_text", - "color_link_text", - "color_link_text_hover", - ) - result = super().write(values) - if any([field in values for field in fields_to_check]): + result = super().write(values) + if not self.env.context.get("ignore_company_color"): + fields_to_check = ["company_colors"] + [ + field_name + for field_name, field in self._fields.items() + if field.sparse == "company_colors" + ] + if any(field in values for field in fields_to_check): self.scss_create_or_update_attachment() - else: - result = super().write(values) return result + def button_reset_colors(self): + self.write({"company_colors": {}}) + # Reload like a regular save does, so the reset colors are applied + return {"type": "ir.actions.client", "tag": "reload_context"} + def button_compute_color(self): self.ensure_one() values = self.default_get( @@ -195,10 +184,11 @@ def button_compute_color(self): { "color_navbar_bg": n_rgb_to_hex(_r, _g, _b), "color_navbar_bg_hover": n_rgb_to_hex(_rd, _gd, _bd), + "color_navbar_border_bottom": n_rgb_to_hex(_rd, _gd, _bd), "color_navbar_text": "#000" if _a < 0.5 else "#fff", } ) - self.write(values) + self.update(values) def _scss_get_sanitized_values(self): self.ensure_one() @@ -206,10 +196,16 @@ def _scss_get_sanitized_values(self): # This allow extend company_colors and only sanitize selected fields # or add custom values values = dict(self.company_colors or {}) + # The SCSS is compiled alone, so Odoo SCSS variables + # (like $o-brand-odoo) are not available: use literal colors. + navbar_bg = values.get("color_navbar_bg") or "#71639e" values.update( { - "color_navbar_bg": (values.get("color_navbar_bg") or "$o-brand-odoo"), - "color_navbar_bg_hover": (values.get("color_navbar_bg_hover")), + "color_navbar_bg": navbar_bg, + "color_navbar_bg_hover": values.get("color_navbar_bg_hover") + or f"darken({navbar_bg}, 10%)", + "color_navbar_border_bottom": values.get("color_navbar_border_bottom") + or f"darken({navbar_bg}, 10%)", "color_navbar_text": (values.get("color_navbar_text") or "#FFF"), "color_button_bg": values.get("color_button_bg") or "#71639e", "color_button_bg_hover": values.get("color_button_bg_hover") @@ -218,7 +214,7 @@ def _scss_get_sanitized_values(self): "color_link_text": values.get("color_link_text") or "#71639e", "color_link_text_hover": values.get("color_link_text_hover") or "darken(#71639e, 10%)", - "color_submenu_text": values.get("color_link_text") or "#374151", + "color_submenu_text": values.get("color_submenu_text") or "#374151", } ) return values @@ -228,7 +224,7 @@ def _scss_generate_content(self): # ir.attachment need files with content to work if not self.company_colors: return "// No Web Company Color SCSS Content\n" - return self.SCSS_TEMPLATE % self._scss_get_sanitized_values() + return self._get_scss_template() % self._scss_get_sanitized_values() def scss_get_url(self): self.ensure_one() @@ -237,8 +233,12 @@ def scss_get_url(self): def scss_create_or_update_attachment(self): IrAttachmentObj = self.env["ir.attachment"] for record in self: - datas = base64.b64encode(record._scss_generate_content().encode("utf-8")) custom_url = record.scss_get_url() + SCSS_asset = ScssStylesheetAsset( + "web_company_color.company_color_assets", url=custom_url + ) + compiled_CSS = SCSS_asset.compile(record._scss_generate_content()) + datas = base64.b64encode(compiled_CSS.encode("utf-8")) custom_attachment = IrAttachmentObj.sudo().search( [("url", "=", custom_url), ("company_id", "=", record.id)] ) diff --git a/web_company_color/readme/CONTRIBUTORS.md b/web_company_color/readme/CONTRIBUTORS.md index 56447aa857e7..4141ecccdf38 100644 --- a/web_company_color/readme/CONTRIBUTORS.md +++ b/web_company_color/readme/CONTRIBUTORS.md @@ -10,3 +10,6 @@ - Carlos Roca - [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io) - Bhavesh Heliconia +- [PyTech](https://www.pytech.it): + - Simone Rubino \<\> +- Marwan Behillil \<> diff --git a/web_company_color/static/description/index.html b/web_company_color/static/description/index.html index 3b7361f161c1..874620ba73d0 100644 --- a/web_company_color/static/description/index.html +++ b/web_company_color/static/description/index.html @@ -372,7 +372,7 @@

Web Company Color

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:238dbb5fcd4a1b17f5fb8c0663c60295a2c26b9162bb189a92cb5b26de1ba1ba +!! source digest: sha256:0f1eb8f1ca049c84a04c76f7dd8ee3bfc56c1bfcf0ab523f2c1e16f035acd639 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

This module change navbar colors based in the company logo colors.

@@ -436,6 +436,11 @@

Contributors

  • Bhavesh Heliconia
  • +
  • PyTech: +
  • +
  • Marwan Behillil <marwan.behillil@gmail.com>
  • diff --git a/web_company_color/tests/test_res_company.py b/web_company_color/tests/test_res_company.py index 1c2fb665e975..18ca28a659fa 100644 --- a/web_company_color/tests/test_res_company.py +++ b/web_company_color/tests/test_res_company.py @@ -1,5 +1,8 @@ # Copyright 2019 Alexandre Díaz # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import base64 + from odoo.tests import common from ..models.res_company import URL_BASE @@ -48,7 +51,7 @@ def test_scss_sanitized_values(self): values = company_id.sudo()._scss_get_sanitized_values() self.assertEqual( values["color_navbar_bg"], - "$o-brand-odoo", + "#71639e", "Invalid Navbar Background Color", ) company_id.sudo().write({"color_navbar_bg": "#DEAD00"}) @@ -75,3 +78,84 @@ def test_change_color(self): company_id.company_colors, "Invalid Navbar Background Color", ) + + def test_reset_colors(self): + company = self.env["res.company"].search([], limit=1) + company.sudo().write( + { + "color_navbar_bg": "#111111", + "color_navbar_bg_hover": "#222222", + "color_navbar_text": "#333333", + "color_button_bg": "#444444", + "color_button_bg_hover": "#555555", + "color_button_text": "#666666", + "color_link_text": "#777777", + "color_link_text_hover": "#888888", + "color_submenu_text": "#999999", + } + ) + company.button_reset_colors() + company.invalidate_recordset() + self.assertFalse(company.color_navbar_bg, "color_navbar_bg should be reset") + self.assertFalse( + company.color_navbar_bg_hover, "color_navbar_bg_hover should be reset" + ) + self.assertFalse(company.color_navbar_text, "color_navbar_text should be reset") + self.assertFalse(company.color_button_bg, "color_button_bg should be reset") + self.assertFalse( + company.color_button_bg_hover, "color_button_bg_hover should be reset" + ) + self.assertFalse(company.color_button_text, "color_button_text should be reset") + self.assertFalse(company.color_link_text, "color_link_text should be reset") + self.assertFalse( + company.color_link_text_hover, "color_link_text_hover should be reset" + ) + self.assertFalse( + company.color_submenu_text, "color_submenu_text should be reset" + ) + self.assertFalse( + company.company_colors, "company_colors should be empty after reset" + ) + + def test_compiled_scss(self): + """The SCSS is compiled before being sent to the client.""" + # Arrange + company = self.env.company + color = "#d2e1dd" + desaturated_color = "#dadada" + company.color_navbar_bg = "desaturate(#d2e1dd, 30%)" + + # Act + company.scss_create_or_update_attachment() + + # Assert + attachment = self.env["ir.attachment"].search( + [("url", "=", company.scss_get_url())] + ) + css = base64.b64decode(attachment.datas).decode() + self.assertNotIn("desaturate", css) + self.assertNotIn(color, css) + self.assertIn(desaturated_color, css) + + def test_ignore_company_color(self): + """ + Test that we can turn off regenerating css attachment via context key + """ + company = self.env.company + attachment = self.env["ir.attachment"].search( + [("url", "=", company.scss_get_url())] + ) + attachment.unlink() + + company.company_colors = {} + attachment = self.env["ir.attachment"].search( + [("url", "=", company.scss_get_url())] + ) + self.assertTrue(attachment, "attachment should have been regenerated") + + attachment.unlink() + company.with_context(ignore_company_color=True).company_colors = {} + attachment = self.env["ir.attachment"].search( + [("url", "=", company.scss_get_url())] + ) + self.assertFalse(attachment, "attachment should not have been regenerated") diff --git a/web_company_color/utils.py b/web_company_color/utils.py index 2028a4c4b892..78f1ab6cc7d8 100644 --- a/web_company_color/utils.py +++ b/web_company_color/utils.py @@ -4,7 +4,10 @@ import math from io import BytesIO -from PIL import Image +from PIL import ( + Image, + WebPImagePlugin, # noqa: F401 - force WebP opener registration +) def n_rgb_to_hex(_r, _g, _b): diff --git a/web_company_color/view/res_company.xml b/web_company_color/view/res_company.xml index 45dd79421834..f2be2b6c5ea0 100644 --- a/web_company_color/view/res_company.xml +++ b/web_company_color/view/res_company.xml @@ -18,12 +18,14 @@ + +