diff --git a/website_breadcrumb/README.rst b/website_breadcrumb/README.rst new file mode 100644 index 0000000000..b85a2e95bc --- /dev/null +++ b/website_breadcrumb/README.rst @@ -0,0 +1,122 @@ +=================== +Website Breadcrumbs +=================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:0c64fd58e5e140a759ad29844bffeb3028c49f78f515fa5baaab59be7c4ec7ec + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-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%2Fwebsite-lightgray.png?logo=github + :target: https://github.com/OCA/website/tree/18.0/website_breadcrumb + :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_breadcrumb + :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 allows you to have breadcrumbs in any page of your website. +But if an URL is not present in a menu (as indicated in the +Configuration section), no breadcrumbs will display. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure the shown breadcrumbs, you need to: + +1. Enable developer mode. +2. Go to Website Admin > Configuration > Menus. +3. Remove the website grouping from the filter if it is set. +4. Edit any menu there. + +Keep in mind that: + +- This module will try to match **exactly** the URL in the menu item + with the one you are browsing. +- If it finds no match, breadcrumbs will not be shown. +- If it finds several matches, only the first one will be used. +- Using more than 1 submenu for the website top menu will probably make + it unusable. In case you need that granularity, you will have to + create a separate top menu for managing your breadcrumbs. +- Breadcrumbs use the menu name, **not the page name**, except for the + top menu item, which will appear as *Home* and point to ``/`` unless + you specify an URL for it. + +Usage +===== + +To use this module, you need to: + +1. Log in. +2. Go to your home page and click on the body of the page. +3. Open the web editor and go to the **Customise** tab. +4. Enable **Breadcrumbs** (it is enabled by default). + +- If you want to use this module in a theme but you do not like where + it is rendered, you can simply disable it in the top menu and add in + you own layout a ```` + element. + +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 +------- + +* Grupo ESOC Ingeniería de Servicios + +Contributors +------------ + +- `Tecnativa `__: + + - Jairo Llopis + - Cristina Martin R. + - Pilar Vargas + +- Bjorn Billen + +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/website `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_breadcrumb/__init__.py b/website_breadcrumb/__init__.py new file mode 100644 index 0000000000..44f9fd7c13 --- /dev/null +++ b/website_breadcrumb/__init__.py @@ -0,0 +1,3 @@ +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). + +from . import models diff --git a/website_breadcrumb/__manifest__.py b/website_breadcrumb/__manifest__.py new file mode 100644 index 0000000000..b83894aed4 --- /dev/null +++ b/website_breadcrumb/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis +# Copyright 2019 Tecnativa - Cristina Martin R. +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). +{ + "name": "Website Breadcrumbs", + "summary": "Let you have breadcrumbs in website pages", + "version": "18.0.1.0.0", + "category": "Website", + "website": "https://github.com/OCA/website", + "author": "Grupo ESOC Ingeniería de Servicios, Odoo Community Association (OCA)", + "license": "LGPL-3", + "application": False, + "installable": True, + "depends": ["website"], + "data": ["views/templates.xml", "views/layout.xml"], +} diff --git a/website_breadcrumb/i18n/ar.po b/website_breadcrumb/i18n/ar.po new file mode 100644 index 0000000000..045a0da783 --- /dev/null +++ b/website_breadcrumb/i18n/ar.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "المنزل" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/ca.po b/website_breadcrumb/i18n/ca.po new file mode 100644 index 0000000000..c8394f8d97 --- /dev/null +++ b/website_breadcrumb/i18n/ca.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2022-02-28 13:17+0000\n" +"Last-Translator: Noel estudillo \n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\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.3.2\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Inici" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Menú del lloc web" diff --git a/website_breadcrumb/i18n/de.po b/website_breadcrumb/i18n/de.po new file mode 100644 index 0000000000..f19696c58e --- /dev/null +++ b/website_breadcrumb/i18n/de.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Anfangsseite" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Webseitenmenü" diff --git a/website_breadcrumb/i18n/el.po b/website_breadcrumb/i18n/el.po new file mode 100644 index 0000000000..c04f7d55b1 --- /dev/null +++ b/website_breadcrumb/i18n/el.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Greek (https://www.transifex.com/oca/teams/23907/el/)\n" +"Language: el\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Αρχική σελίδα" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/el_GR.po b/website_breadcrumb/i18n/el_GR.po new file mode 100644 index 0000000000..4cc7f05ebb --- /dev/null +++ b/website_breadcrumb/i18n/el_GR.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" +"el_GR/)\n" +"Language: el_GR\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Αρχική σελίδα" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Μενού Iστότοπου" diff --git a/website_breadcrumb/i18n/es.po b/website_breadcrumb/i18n/es.po new file mode 100644 index 0000000000..d3d5ba4ef8 --- /dev/null +++ b/website_breadcrumb/i18n/es.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Inicio" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Menú del sitio web" diff --git a/website_breadcrumb/i18n/es_CR.po b/website_breadcrumb/i18n/es_CR.po new file mode 100644 index 0000000000..d0e2afc622 --- /dev/null +++ b/website_breadcrumb/i18n/es_CR.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Costa Rica) (https://www.transifex.com/oca/" +"teams/23907/es_CR/)\n" +"Language: es_CR\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Casa" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/es_MX.po b/website_breadcrumb/i18n/es_MX.po new file mode 100644 index 0000000000..3dd74254ec --- /dev/null +++ b/website_breadcrumb/i18n/es_MX.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Casa" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/es_VE.po b/website_breadcrumb/i18n/es_VE.po new file mode 100644 index 0000000000..8f65b97010 --- /dev/null +++ b/website_breadcrumb/i18n/es_VE.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Venezuela) (https://www.transifex.com/oca/" +"teams/23907/es_VE/)\n" +"Language: es_VE\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Casa" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/fi.po b/website_breadcrumb/i18n/fi.po new file mode 100644 index 0000000000..3eea3e720e --- /dev/null +++ b/website_breadcrumb/i18n/fi.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Alkuun" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/fr.po b/website_breadcrumb/i18n/fr.po new file mode 100644 index 0000000000..e9ea72d857 --- /dev/null +++ b/website_breadcrumb/i18n/fr.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# Christophe CHAUVET , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: Christophe CHAUVET , 2016\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Accueil" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Menu site internet" diff --git a/website_breadcrumb/i18n/gl.po b/website_breadcrumb/i18n/gl.po new file mode 100644 index 0000000000..d1fbbaccd1 --- /dev/null +++ b/website_breadcrumb/i18n/gl.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Inicio" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/hr.po b/website_breadcrumb/i18n/hr.po new file mode 100644 index 0000000000..bb3bb6a8cc --- /dev/null +++ b/website_breadcrumb/i18n/hr.po @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2019-11-13 18:34+0000\n" +"Last-Translator: Bole \n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 3.8\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Naslovna" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Web izbornik" diff --git a/website_breadcrumb/i18n/hu.po b/website_breadcrumb/i18n/hu.po new file mode 100644 index 0000000000..590ad86c47 --- /dev/null +++ b/website_breadcrumb/i18n/hu.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n" +"Language: hu\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Kezdőlap" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/it.po b/website_breadcrumb/i18n/it.po new file mode 100644 index 0000000000..af43bcd5e2 --- /dev/null +++ b/website_breadcrumb/i18n/it.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2023-07-18 13:09+0000\n" +"Last-Translator: mymage \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\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.17\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Home" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Menu sito web" diff --git a/website_breadcrumb/i18n/ja.po b/website_breadcrumb/i18n/ja.po new file mode 100644 index 0000000000..0de47b6c7f --- /dev/null +++ b/website_breadcrumb/i18n/ja.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Japanese (https://www.transifex.com/oca/teams/23907/ja/)\n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "自宅" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/lt.po b/website_breadcrumb/i18n/lt.po new file mode 100644 index 0000000000..50c0ea10c7 --- /dev/null +++ b/website_breadcrumb/i18n/lt.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" +"Language: lt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" +"%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Pradžia" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/lv.po b/website_breadcrumb/i18n/lv.po new file mode 100644 index 0000000000..b0fed8fddb --- /dev/null +++ b/website_breadcrumb/i18n/lv.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Latvian (https://www.transifex.com/oca/teams/23907/lv/)\n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Mājas" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/mk.po b/website_breadcrumb/i18n/mk.po new file mode 100644 index 0000000000..5d08e6531b --- /dev/null +++ b/website_breadcrumb/i18n/mk.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Macedonian (https://www.transifex.com/oca/teams/23907/mk/)\n" +"Language: mk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Дома" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/mn.po b/website_breadcrumb/i18n/mn.po new file mode 100644 index 0000000000..048601cfbf --- /dev/null +++ b/website_breadcrumb/i18n/mn.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Mongolian (https://www.transifex.com/oca/teams/23907/mn/)\n" +"Language: mn\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Гэр" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/nl.po b/website_breadcrumb/i18n/nl.po new file mode 100644 index 0000000000..a903c2f5bb --- /dev/null +++ b/website_breadcrumb/i18n/nl.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Thuis" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/pl.po b/website_breadcrumb/i18n/pl.po new file mode 100644 index 0000000000..e861eb2256 --- /dev/null +++ b/website_breadcrumb/i18n/pl.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Polish (https://www.transifex.com/oca/teams/23907/pl/)\n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Dom" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/pt.po b/website_breadcrumb/i18n/pt.po new file mode 100644 index 0000000000..49e496795f --- /dev/null +++ b/website_breadcrumb/i18n/pt.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Página Inicial" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/pt_BR.po b/website_breadcrumb/i18n/pt_BR.po new file mode 100644 index 0000000000..d26b461253 --- /dev/null +++ b/website_breadcrumb/i18n/pt_BR.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Inicio" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Menu site" diff --git a/website_breadcrumb/i18n/ro.po b/website_breadcrumb/i18n/ro.po new file mode 100644 index 0000000000..d1e4239638 --- /dev/null +++ b/website_breadcrumb/i18n/ro.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Acasa" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/ru.po b/website_breadcrumb/i18n/ru.po new file mode 100644 index 0000000000..477d44affe --- /dev/null +++ b/website_breadcrumb/i18n/ru.po @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" +"%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Домой" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Меню сайта" diff --git a/website_breadcrumb/i18n/sl.po b/website_breadcrumb/i18n/sl.po new file mode 100644 index 0000000000..e1cc77412f --- /dev/null +++ b/website_breadcrumb/i18n/sl.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Domov" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "Spletni meni" diff --git a/website_breadcrumb/i18n/sv.po b/website_breadcrumb/i18n/sv.po new file mode 100644 index 0000000000..8f72d0ec1c --- /dev/null +++ b/website_breadcrumb/i18n/sv.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Swedish (https://www.transifex.com/oca/teams/23907/sv/)\n" +"Language: sv\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" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "Hemma" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/website_breadcrumb.pot b/website_breadcrumb/i18n/website_breadcrumb.pot new file mode 100644 index 0000000000..53df78f819 --- /dev/null +++ b/website_breadcrumb/i18n/website_breadcrumb.pot @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.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_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/i18n/zh_CN.po b/website_breadcrumb/i18n/zh_CN.po new file mode 100644 index 0000000000..8254917c0b --- /dev/null +++ b/website_breadcrumb/i18n/zh_CN.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_breadcrumb +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-14 03:42+0000\n" +"PO-Revision-Date: 2016-12-14 03:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: website_breadcrumb +#: model_terms:ir.ui.view,arch_db:website_breadcrumb.breadcrumb +msgid "Home" +msgstr "首页" + +#. module: website_breadcrumb +#: model:ir.model,name:website_breadcrumb.model_website_menu +msgid "Website Menu" +msgstr "" diff --git a/website_breadcrumb/models/__init__.py b/website_breadcrumb/models/__init__.py new file mode 100644 index 0000000000..2176c8841a --- /dev/null +++ b/website_breadcrumb/models/__init__.py @@ -0,0 +1,3 @@ +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). + +from . import website diff --git a/website_breadcrumb/models/website.py b/website_breadcrumb/models/website.py new file mode 100644 index 0000000000..bc3a709db0 --- /dev/null +++ b/website_breadcrumb/models/website.py @@ -0,0 +1,29 @@ +# Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). + +from odoo import models + + +class WebsiteMenu(models.Model): + _inherit = "website.menu" + + def get_parents(self, revert=False, include_self=False): + """List current menu's parents. + + :param bool revert: + Indicates if the result must be revert before returning. + Activating this will mean that the result will be ordered from + parent to child. + + :param bool include_self: + Indicates if the current menu item must be included in the result. + + :return list: + Menu items ordered from child to parent, unless ``revert=True``. + """ + result = list() + menu = self if include_self else self.parent_id + while menu: + result.append(menu) + menu = menu.parent_id + return reversed(result) if revert else result diff --git a/website_breadcrumb/pyproject.toml b/website_breadcrumb/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/website_breadcrumb/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/website_breadcrumb/readme/CONFIGURE.md b/website_breadcrumb/readme/CONFIGURE.md new file mode 100644 index 0000000000..cc0955c690 --- /dev/null +++ b/website_breadcrumb/readme/CONFIGURE.md @@ -0,0 +1,19 @@ +To configure the shown breadcrumbs, you need to: + +1. Enable developer mode. +2. Go to Website Admin \> Configuration \> Menus. +3. Remove the website grouping from the filter if it is set. +4. Edit any menu there. + +Keep in mind that: + +- This module will try to match **exactly** the URL in the menu item + with the one you are browsing. +- If it finds no match, breadcrumbs will not be shown. +- If it finds several matches, only the first one will be used. +- Using more than 1 submenu for the website top menu will probably make + it unusable. In case you need that granularity, you will have to + create a separate top menu for managing your breadcrumbs. +- Breadcrumbs use the menu name, **not the page name**, except for the + top menu item, which will appear as *Home* and point to `/` unless you + specify an URL for it. diff --git a/website_breadcrumb/readme/CONTRIBUTORS.md b/website_breadcrumb/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..cbbb8c2c40 --- /dev/null +++ b/website_breadcrumb/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- [Tecnativa](https://www.tecnativa.com): + - Jairo Llopis + - Cristina Martin R. + - Pilar Vargas +- Bjorn Billen \<\> diff --git a/website_breadcrumb/readme/DESCRIPTION.md b/website_breadcrumb/readme/DESCRIPTION.md new file mode 100644 index 0000000000..a9ae1af3be --- /dev/null +++ b/website_breadcrumb/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module allows you to have breadcrumbs in any page of your website. +But if an URL is not present in a menu (as indicated in the +Configuration section), no breadcrumbs will display. diff --git a/website_breadcrumb/readme/USAGE.md b/website_breadcrumb/readme/USAGE.md new file mode 100644 index 0000000000..e461b226a2 --- /dev/null +++ b/website_breadcrumb/readme/USAGE.md @@ -0,0 +1,10 @@ +To use this module, you need to: + +1. Log in. +2. Go to your home page and click on the body of the page. +3. Open the web editor and go to the **Customise** tab. +4. Enable **Breadcrumbs** (it is enabled by default). + +- If you want to use this module in a theme but you do not like where it + is rendered, you can simply disable it in the top menu and add in you + own layout a `` element. diff --git a/website_breadcrumb/static/description/icon.png b/website_breadcrumb/static/description/icon.png new file mode 100644 index 0000000000..2612f84bf8 Binary files /dev/null and b/website_breadcrumb/static/description/icon.png differ diff --git a/website_breadcrumb/static/description/icon.svg b/website_breadcrumb/static/description/icon.svg new file mode 100644 index 0000000000..ab0e83f61d --- /dev/null +++ b/website_breadcrumb/static/description/icon.svg @@ -0,0 +1,60 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/website_breadcrumb/static/description/index.html b/website_breadcrumb/static/description/index.html new file mode 100644 index 0000000000..2e96d9bc5f --- /dev/null +++ b/website_breadcrumb/static/description/index.html @@ -0,0 +1,472 @@ + + + + + +Website Breadcrumbs + + + +
+

Website Breadcrumbs

+ + +

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

+

This module allows you to have breadcrumbs in any page of your website. +But if an URL is not present in a menu (as indicated in the +Configuration section), no breadcrumbs will display.

+

Table of contents

+ +
+

Configuration

+

To configure the shown breadcrumbs, you need to:

+
    +
  1. Enable developer mode.
  2. +
  3. Go to Website Admin > Configuration > Menus.
  4. +
  5. Remove the website grouping from the filter if it is set.
  6. +
  7. Edit any menu there.
  8. +
+

Keep in mind that:

+
    +
  • This module will try to match exactly the URL in the menu item +with the one you are browsing.
  • +
  • If it finds no match, breadcrumbs will not be shown.
  • +
  • If it finds several matches, only the first one will be used.
  • +
  • Using more than 1 submenu for the website top menu will probably make +it unusable. In case you need that granularity, you will have to +create a separate top menu for managing your breadcrumbs.
  • +
  • Breadcrumbs use the menu name, not the page name, except for the +top menu item, which will appear as Home and point to / unless +you specify an URL for it.
  • +
+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. Log in.
  2. +
  3. Go to your home page and click on the body of the page.
  4. +
  5. Open the web editor and go to the Customise tab.
  6. +
  7. Enable Breadcrumbs (it is enabled by default).
  8. +
+
    +
  • If you want to use this module in a theme but you do not like where +it is rendered, you can simply disable it in the top menu and add in +you own layout a <t t-call="website_breadcrumb.breadcrumb"/> +element.
  • +
+
+
+

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

+
    +
  • Grupo ESOC Ingeniería de Servicios
  • +
+
+
+

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

+

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

+
+
+
+ + diff --git a/website_breadcrumb/views/layout.xml b/website_breadcrumb/views/layout.xml new file mode 100644 index 0000000000..e40450afcd --- /dev/null +++ b/website_breadcrumb/views/layout.xml @@ -0,0 +1,26 @@ + + + + diff --git a/website_breadcrumb/views/templates.xml b/website_breadcrumb/views/templates.xml new file mode 100644 index 0000000000..2a2c192d0b --- /dev/null +++ b/website_breadcrumb/views/templates.xml @@ -0,0 +1,32 @@ + + + + +