diff --git a/README.md b/README.md index 4b39d1f48c..125c078bf2 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ addon | version | maintainers | summary [website_search_header](website_search_header/) | 18.0.1.0.0 | | Website Search in Header [website_select2](website_select2/) | 18.0.1.0.0 | hbrunn | Integrate select2 in Odoo websites [website_snippet_country_dropdown](website_snippet_country_dropdown/) | 18.0.1.0.1 | | Allow to select country in a dropdown +[website_social_media_link](website_social_media_link/) | 18.0.1.0.0 | legalsylvain | Display Social Medial Links on Website back-end. [website_user_login_redirect_custom](website_user_login_redirect_custom/) | 18.0.1.0.0 | | Redirect website/portal user to custom URL after login or signup [website_whatsapp](website_whatsapp/) | 18.0.1.0.1 | ioans73 | Whatsapp integration diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml index 9a0685cd10..5ddc6e7253 100644 --- a/setup/_metapackage/pyproject.toml +++ b/setup/_metapackage/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "odoo-addons-oca-website" -version = "18.0.20260902.0" +version = "18.0.20260910.0" dependencies = [ "odoo-addon-website_altcha==18.0.*", "odoo-addon-website_analytics_matomo==18.0.*", @@ -24,6 +24,7 @@ dependencies = [ "odoo-addon-website_search_header==18.0.*", "odoo-addon-website_select2==18.0.*", "odoo-addon-website_snippet_country_dropdown==18.0.*", + "odoo-addon-website_social_media_link==18.0.*", "odoo-addon-website_user_login_redirect_custom==18.0.*", "odoo-addon-website_whatsapp==18.0.*", ] diff --git a/website_social_media_link/README.rst b/website_social_media_link/README.rst new file mode 100644 index 0000000000..8ce14f3bcd --- /dev/null +++ b/website_social_media_link/README.rst @@ -0,0 +1,103 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +============================ +Website - Social Media Links +============================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:88ad463c621184b8de9692b19b2b15193505d0b794236c6c2a40d9c845b45ccd + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-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%2Fwebsite-lightgray.png?logo=github + :target: https://github.com/OCA/website/tree/18.0/website_social_media_link + :alt: OCA/website +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/website-18-0/website-18-0-website_social_media_link + :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/website&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module is a bugfix. In odoo, when creating a new website, the URLs +of the social media are copied from ``res.company`` model to ``website`` +model. Once done, it is not possible to user to change data on +``website`` model, if an URL change, or a new social media is used. + +This module adds Social Medial links on websites back-end form view. + +|website| + +.. |website| image:: https://raw.githubusercontent.com/OCA/website/18.0/website_social_media_link/static/description/website_form.png + +**Table of contents** + +.. contents:: + :local: + +Known issues / Roadmap +====================== + +We can stop use this module as soon as this patch has been reviewed and +merged https://github.com/odoo/odoo/pull/237668. + +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 +------- + +* GRAP + +Contributors +------------ + +- Sylvain LE GAL + +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. + +.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px + :target: https://github.com/legalsylvain + :alt: legalsylvain + +Current `maintainer `__: + +|maintainer-legalsylvain| + +This module is part of the `OCA/website `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_social_media_link/__init__.py b/website_social_media_link/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/website_social_media_link/__manifest__.py b/website_social_media_link/__manifest__.py new file mode 100644 index 0000000000..b0c6cf2798 --- /dev/null +++ b/website_social_media_link/__manifest__.py @@ -0,0 +1,14 @@ +# Copyright 2026 - Today: GRAP https://www.grap.coop +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +{ + "name": "Website - Social Media Links", + "summary": "Display Social Medial Links on Website back-end.", + "version": "18.0.1.0.0", + "author": "GRAP, Odoo Community Association (OCA)", + "maintainers": ["legalsylvain"], + "website": "https://github.com/OCA/website", + "license": "AGPL-3", + "category": "Website", + "depends": ["website"], + "data": ["views/view_website.xml"], +} diff --git a/website_social_media_link/i18n/fr.po b/website_social_media_link/i18n/fr.po new file mode 100644 index 0000000000..ba9ad86c75 --- /dev/null +++ b/website_social_media_link/i18n/fr.po @@ -0,0 +1,20 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_social_media_link +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: website_social_media_link +#: model_terms:ir.ui.view,arch_db:website_social_media_link.view_website_form +msgid "Social Media" +msgstr "Média Sociaux" diff --git a/website_social_media_link/i18n/website_social_media_link.pot b/website_social_media_link/i18n/website_social_media_link.pot new file mode 100644 index 0000000000..966de4dc69 --- /dev/null +++ b/website_social_media_link/i18n/website_social_media_link.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_social_media_link +# +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" + +#. module: website_social_media_link +#: model_terms:ir.ui.view,arch_db:website_social_media_link.view_website_form +msgid "Social Media" +msgstr "" diff --git a/website_social_media_link/pyproject.toml b/website_social_media_link/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/website_social_media_link/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/website_social_media_link/readme/CONTRIBUTORS.md b/website_social_media_link/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..3442186d90 --- /dev/null +++ b/website_social_media_link/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Sylvain LE GAL \<\> diff --git a/website_social_media_link/readme/DESCRIPTION.md b/website_social_media_link/readme/DESCRIPTION.md new file mode 100644 index 0000000000..0859daa5f2 --- /dev/null +++ b/website_social_media_link/readme/DESCRIPTION.md @@ -0,0 +1,11 @@ +This module is a bugfix. +In odoo, when creating a new website, the URLs of the social +media are copied from `res.company` model to `website` model. +Once done, it is not possible to user to change data +on `website` model, if an URL change, or a new social media +is used. + +This module adds Social Medial links on websites back-end +form view. + +![website](../static/description/website_form.png) diff --git a/website_social_media_link/readme/ROADMAP.md b/website_social_media_link/readme/ROADMAP.md new file mode 100644 index 0000000000..9c718a0b9b --- /dev/null +++ b/website_social_media_link/readme/ROADMAP.md @@ -0,0 +1,3 @@ +We can stop use this module as soon as this patch has been reviewed +and merged https://github.com/odoo/odoo/pull/237668. + \ No newline at end of file diff --git a/website_social_media_link/static/description/icon.png b/website_social_media_link/static/description/icon.png new file mode 100644 index 0000000000..1dcc49c24f Binary files /dev/null and b/website_social_media_link/static/description/icon.png differ diff --git a/website_social_media_link/static/description/index.html b/website_social_media_link/static/description/index.html new file mode 100644 index 0000000000..5d73f32389 --- /dev/null +++ b/website_social_media_link/static/description/index.html @@ -0,0 +1,442 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + + +
+ + diff --git a/website_social_media_link/static/description/website_form.png b/website_social_media_link/static/description/website_form.png new file mode 100644 index 0000000000..88be41c0ef Binary files /dev/null and b/website_social_media_link/static/description/website_form.png differ diff --git a/website_social_media_link/views/view_website.xml b/website_social_media_link/views/view_website.xml new file mode 100644 index 0000000000..4477f96945 --- /dev/null +++ b/website_social_media_link/views/view_website.xml @@ -0,0 +1,22 @@ + + + + website + + + + + + + + + + + + + + + + + +