diff --git a/web_company_color/README.rst b/web_company_color/README.rst index c0bbbb1ae..09d3abfb2 100644 --- a/web_company_color/README.rst +++ b/web_company_color/README.rst @@ -7,7 +7,7 @@ Web Company Color !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:87a21b4b71e561d5717d2ce03ac4bbd2676df1b82d72d31a19dcbd2b19b27d5d + !! source digest: sha256:0d77639a7fc2cad4e3f3eefdb495036be87e1f9487c6601a255ff3b5ec96a071 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/web_company_color/__manifest__.py b/web_company_color/__manifest__.py index e23d86d9f..527788a47 100644 --- a/web_company_color/__manifest__.py +++ b/web_company_color/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Web Company Color", "category": "web", - "version": "16.0.1.1.0", + "version": "16.0.1.2.0", "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 dab300634..6ab993f12 100644 --- a/web_company_color/i18n/ca.po +++ b/web_company_color/i18n/ca.po @@ -25,6 +25,26 @@ msgid "" " the page." msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg +msgid "Button Background Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover +msgid "Button Background Color Hover" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text +msgid "Button Text Color" +msgstr "" + +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Colors" +msgstr "" + #. module: web_company_color #: model:ir.model,name:web_company_color.model_res_company msgid "Companies" @@ -45,6 +65,16 @@ msgstr "" msgid "Compute colors from logo" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text +msgid "Link Text Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover +msgid "Link Text Color Hover" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg msgid "Navbar Background Color" @@ -55,11 +85,6 @@ msgstr "" msgid "Navbar Background Color Hover" msgstr "" -#. module: web_company_color -#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form -msgid "Navbar Colors" -msgstr "" - #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -69,3 +94,8 @@ msgstr "" #: model:ir.model,name:web_company_color.model_ir_qweb msgid "Qweb" msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp +msgid "SCSS Modif. Timestamp" +msgstr "" diff --git a/web_company_color/i18n/de.po b/web_company_color/i18n/de.po index 634f34b89..e73a2980a 100644 --- a/web_company_color/i18n/de.po +++ b/web_company_color/i18n/de.po @@ -29,6 +29,26 @@ msgstr "" "Sie bitte\n" " die Seite." +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg +msgid "Button Background Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover +msgid "Button Background Color Hover" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text +msgid "Button Text Color" +msgstr "" + +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Colors" +msgstr "" + #. module: web_company_color #: model:ir.model,name:web_company_color.model_res_company msgid "Companies" @@ -49,6 +69,16 @@ 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_res_company__color_link_text +msgid "Link Text Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover +msgid "Link Text Color Hover" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg msgid "Navbar Background Color" @@ -59,11 +89,6 @@ msgstr "Navbar-Hintergrundfarbe" msgid "Navbar Background Color Hover" msgstr "Navbar Hintergrundfarbe Hover" -#. module: web_company_color -#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form -msgid "Navbar Colors" -msgstr "Navbar-Farben" - #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -74,6 +99,14 @@ msgstr "Navbar Textfarbe" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp +msgid "SCSS Modif. Timestamp" +msgstr "" + +#~ msgid "Navbar Colors" +#~ msgstr "Navbar-Farben" + #~ msgid "" #~ "\n" #~ " In order for the changes to take effect, please " diff --git a/web_company_color/i18n/es.po b/web_company_color/i18n/es.po index 804474b18..1dca30d69 100644 --- a/web_company_color/i18n/es.po +++ b/web_company_color/i18n/es.po @@ -29,6 +29,26 @@ msgstr "" " Para que los cambios surtan efecto, actualice\n" " la página." +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg +msgid "Button Background Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover +msgid "Button Background Color Hover" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text +msgid "Button Text Color" +msgstr "" + +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Colors" +msgstr "" + #. module: web_company_color #: model:ir.model,name:web_company_color.model_res_company msgid "Companies" @@ -49,6 +69,16 @@ 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_res_company__color_link_text +msgid "Link Text Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover +msgid "Link Text Color Hover" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg msgid "Navbar Background Color" @@ -59,11 +89,6 @@ 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_terms:ir.ui.view,arch_db:web_company_color.view_company_form -msgid "Navbar Colors" -msgstr "Colores de la barra de navegación" - #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -74,6 +99,14 @@ msgstr "Color de texto de la barra de navegación" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp +msgid "SCSS Modif. Timestamp" +msgstr "" + +#~ msgid "Navbar Colors" +#~ msgstr "Colores de la barra de navegación" + #~ msgid "" #~ "\n" #~ " In order for the changes to take effect, please " diff --git a/web_company_color/i18n/hr.po b/web_company_color/i18n/hr.po index 35cf6f046..a0f2a8177 100644 --- a/web_company_color/i18n/hr.po +++ b/web_company_color/i18n/hr.po @@ -26,6 +26,26 @@ msgid "" " the page." msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg +msgid "Button Background Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover +msgid "Button Background Color Hover" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text +msgid "Button Text Color" +msgstr "" + +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Colors" +msgstr "" + #. module: web_company_color #: model:ir.model,name:web_company_color.model_res_company msgid "Companies" @@ -46,6 +66,16 @@ msgstr "Stilovi tvrtke" msgid "Compute colors from logo" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text +msgid "Link Text Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover +msgid "Link Text Color Hover" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg msgid "Navbar Background Color" @@ -56,11 +86,6 @@ msgstr "Boja pozadine Navigacijske trake" msgid "Navbar Background Color Hover" msgstr "Poja pozadine navigacijske trake (hoover)" -#. module: web_company_color -#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form -msgid "Navbar Colors" -msgstr "Boje navigacijske trake" - #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -71,6 +96,14 @@ msgstr "Boja teksta navigacijske trake" msgid "Qweb" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp +msgid "SCSS Modif. Timestamp" +msgstr "SCSS Modif. Vremenski žig" + +#~ msgid "Navbar Colors" +#~ msgstr "Boje navigacijske trake" + #~ msgid "" #~ "\n" #~ " In order for the changes to take effect, please " @@ -80,6 +113,3 @@ msgstr "" #~ "\n" #~ " Kako bi promjene postale vidljive, molimo \n" #~ " učitajte ponovo ovu stranicu." - -#~ msgid "SCSS Modif. Timestamp" -#~ msgstr "SCSS Modif. Vremenski žig" diff --git a/web_company_color/i18n/it.po b/web_company_color/i18n/it.po index fd059c956..b8ef0770f 100644 --- a/web_company_color/i18n/it.po +++ b/web_company_color/i18n/it.po @@ -25,6 +25,26 @@ msgid "" " the page." msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg +msgid "Button Background Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover +msgid "Button Background Color Hover" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text +msgid "Button Text Color" +msgstr "" + +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Colors" +msgstr "" + #. module: web_company_color #: model:ir.model,name:web_company_color.model_res_company msgid "Companies" @@ -45,6 +65,16 @@ msgstr "Stili Aziendali" msgid "Compute colors from logo" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text +msgid "Link Text Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover +msgid "Link Text Color Hover" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg msgid "Navbar Background Color" @@ -55,11 +85,6 @@ msgstr "Sfondo Barra Navigazione" msgid "Navbar Background Color Hover" msgstr "Colore Hover Sfondo Barra Navigazione" -#. module: web_company_color -#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form -msgid "Navbar Colors" -msgstr "Colori 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" @@ -70,6 +95,14 @@ msgstr "Colori Testo Barra Navigazione" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp +msgid "SCSS Modif. Timestamp" +msgstr "" + +#~ msgid "Navbar Colors" +#~ msgstr "Colori Barra Navigazione" + #~ msgid "" #~ "\n" #~ " In order for the changes to take effect, please " diff --git a/web_company_color/i18n/nl.po b/web_company_color/i18n/nl.po index edeed58e9..74af7dbe8 100644 --- a/web_company_color/i18n/nl.po +++ b/web_company_color/i18n/nl.po @@ -29,6 +29,26 @@ msgstr "" "alstublieft\n" " de pagina." +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg +msgid "Button Background Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover +msgid "Button Background Color Hover" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text +msgid "Button Text Color" +msgstr "" + +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Colors" +msgstr "" + #. module: web_company_color #: model:ir.model,name:web_company_color.model_res_company msgid "Companies" @@ -49,6 +69,16 @@ 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_res_company__color_link_text +msgid "Link Text Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover +msgid "Link Text Color Hover" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg msgid "Navbar Background Color" @@ -59,11 +89,6 @@ msgstr "Navigatiebalk Achtergrondkleur" msgid "Navbar Background Color Hover" msgstr "Navigatiebalk Achtergrondkleur (als je de muis er overheen beweegt)" -#. module: web_company_color -#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form -msgid "Navbar Colors" -msgstr "Navigatiebalk Kleuren" - #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -74,6 +99,14 @@ msgstr "Navigatiebalk Tekstkleuren" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp +msgid "SCSS Modif. Timestamp" +msgstr "" + +#~ msgid "Navbar Colors" +#~ msgstr "Navigatiebalk Kleuren" + #~ msgid "" #~ "\n" #~ " In order for the changes to take effect, please " diff --git a/web_company_color/i18n/web_company_color.pot b/web_company_color/i18n/web_company_color.pot index cce6fbde8..1cd32a3ee 100644 --- a/web_company_color/i18n/web_company_color.pot +++ b/web_company_color/i18n/web_company_color.pot @@ -21,6 +21,26 @@ msgid "" " the page." msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg +msgid "Button Background Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover +msgid "Button Background Color Hover" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text +msgid "Button Text Color" +msgstr "" + +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Colors" +msgstr "" + #. module: web_company_color #: model:ir.model,name:web_company_color.model_res_company msgid "Companies" @@ -41,6 +61,16 @@ msgstr "" msgid "Compute colors from logo" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text +msgid "Link Text Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover +msgid "Link Text Color Hover" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg msgid "Navbar Background Color" @@ -51,11 +81,6 @@ msgstr "" msgid "Navbar Background Color Hover" msgstr "" -#. module: web_company_color -#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form -msgid "Navbar Colors" -msgstr "" - #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -65,3 +90,8 @@ msgstr "" #: model:ir.model,name:web_company_color.model_ir_qweb msgid "Qweb" msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp +msgid "SCSS Modif. Timestamp" +msgstr "" diff --git a/web_company_color/i18n/zh_CN.po b/web_company_color/i18n/zh_CN.po index 99677d649..e0a98cad8 100644 --- a/web_company_color/i18n/zh_CN.po +++ b/web_company_color/i18n/zh_CN.po @@ -25,6 +25,26 @@ msgid "" " the page." msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg +msgid "Button Background Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover +msgid "Button Background Color Hover" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text +msgid "Button Text Color" +msgstr "" + +#. module: web_company_color +#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form +msgid "Colors" +msgstr "" + #. module: web_company_color #: model:ir.model,name:web_company_color.model_res_company msgid "Companies" @@ -45,6 +65,16 @@ msgstr "公司风格" msgid "Compute colors from logo" msgstr "" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text +msgid "Link Text Color" +msgstr "" + +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover +msgid "Link Text Color Hover" +msgstr "" + #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg msgid "Navbar Background Color" @@ -55,11 +85,6 @@ msgstr "导航栏背景颜色" msgid "Navbar Background Color Hover" msgstr "导航栏鼠标悬停背景颜色" -#. module: web_company_color -#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form -msgid "Navbar Colors" -msgstr "导航栏颜色" - #. module: web_company_color #: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text msgid "Navbar Text Color" @@ -70,6 +95,14 @@ msgstr "导航栏文字颜色" msgid "Qweb" msgstr "Qweb" +#. module: web_company_color +#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp +msgid "SCSS Modif. Timestamp" +msgstr "SCSS修改时间戳" + +#~ msgid "Navbar Colors" +#~ msgstr "导航栏颜色" + #~ msgid "" #~ "\n" #~ " In order for the changes to take effect, please " @@ -79,6 +112,3 @@ msgstr "Qweb" #~ "\n" #~ " 为了使更改生效,请刷新\n" #~ " 这个页面。" - -#~ msgid "SCSS Modif. Timestamp" -#~ msgstr "SCSS修改时间戳" diff --git a/web_company_color/models/res_company.py b/web_company_color/models/res_company.py index e50d945a1..a3cc14b05 100644 --- a/web_company_color/models/res_company.py +++ b/web_company_color/models/res_company.py @@ -16,6 +16,7 @@ class ResCompany(models.Model): SCSS_TEMPLATE = """ .o_main_navbar { + background: %(color_navbar_bg)s !important; background-color: %(color_navbar_bg)s !important; color: %(color_navbar_text)s !important; @@ -169,10 +170,7 @@ class ResCompany(models.Model): values.update( { "color_navbar_bg": (values.get("color_navbar_bg") or "$o-brand-odoo"), - "color_navbar_bg_hover": ( - values.get("color_navbar_bg_hover") - or "$o-navbar-inverse-link-hover-bg" - ), + "color_navbar_bg_hover": (values.get("color_navbar_bg_hover")), "color_navbar_text": (values.get("color_navbar_text") or "#FFF"), "color_button_bg": values.get("color_button_bg") or "$primary", "color_button_bg_hover": values.get("color_button_bg_hover") diff --git a/web_company_color/static/description/index.html b/web_company_color/static/description/index.html index 4e4134e6e..e6d3baa9a 100644 --- a/web_company_color/static/description/index.html +++ b/web_company_color/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:87a21b4b71e561d5717d2ce03ac4bbd2676df1b82d72d31a19dcbd2b19b27d5d +!! source digest: sha256:0d77639a7fc2cad4e3f3eefdb495036be87e1f9487c6601a255ff3b5ec96a071 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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.