Перейти к содержимому
Odoo Меню
  • Войти
  • Попробовать бесплатно
  • Модули
    Финансы
    • Бухгалтерия
    • Выставление счетов
    • Расходы
    • Таблицы
    • Документооборот
    • Подпись
    Продажи
    • CRM
    • Продажи
    • POS Магазин
    • POS Ресторан
    • Подписки
    • Аренда
    Вебсайты
    • Конструктор вебсайтов
    • eCommerce
    • Блог
    • Форум
    • Онлайн-чат
    • Электронное обучение
    Логистика
    • Склад
    • Производство
    • PLM
    • Закупки
    • Обслуживание
    • Качество
    Отдел кадров
    • Сотрудники
    • Подбор персонала
    • Отпуска
    • Оценка персонала
    • Реферальная программа
    • Автопарк
    Маркетинг
    • SMM
    • E-mail рассылки
    • СМС рассылки
    • Мероприятия
    • Автоматизация маркетинга
    • Опросы
    Услуги
    • Проекты
    • Табели
    • Выездной сервис
    • Поддержка
    • Планирование
    • Встречи
    Продуктивность
    • Обсуждения
    • Согласование
    • IoT
    • VoIP-телефония
    • Knowledge
    • WhatsApp
    Сторонние приложения Модуль Студия Odoo Платформа Odoo Cloud
  • Индустрии
    Розничная торговля
    • Книжный магазин
    • Магазин одежды
    • Мебельный магазин
    • Продуктовый магазин
    • Строительный магазин
    • Магазин игрушек
    Гостинично-ресторанный бизнес
    • Бар и паб
    • Ресторан
    • Фастфуд
    • Гостевой дом
    • Дистрибьютор напитков
    • Отель
    Недвижимость
    • Агентство недвижимости
    • Архитектурное бюро
    • Строительство
    • Управление недвижимостью
    • Ландшафтный дизайн
    • Товарищество собственников жилья
    Консалтинг
    • Бухгалтерская фирма
    • Партнер Odoo
    • Маркетинговое агентство
    • Юридическая фирма
    • Подбор персонала
    • Аудиторское бюро
    Производство
    • Текстиль
    • Металл
    • Мебель
    • Продукты питания
    • Пивоварня
    • Корпоративные сувениры
    Здоровье и фитнес
    • Спортивный комплекс
    • Магазин оптики
    • Фитнес-клуб
    • Велнес-центр
    • Аптека
    • Салон красоты
    Услуги
    • Специалист по бытовым услугам
    • Продажа и обслуживание IT-оборудования
    • Солнечные энергосистемы
    • Производство обуви
    • Клининг
    • Системы ОВКВ
    Прочее
    • Некоммерческая организация
    • Консалтинг в сфере устойчивого развития
    • Аренда рекламных щитов
    • Бизнес по фотосъемке
    • Прокат велосипедов
    • Реселлер программного обеспечения
    Все индустрии
  • Community
    Обучение
    • Видео уроки
    • Документация
    • Сертификация
    • Тренинг
    • Блог
    • Подкаст
    Образование и развитие
    • Образовательная программа
    • Деловая игра Scale Up!
    • Экскурсия в офис Odoo
    ПО
    • Скачать
    • Сравнить версии
    • Релизы
    Сотрудничество
    • Github
    • Форум
    • Мероприятия
    • Перевод
    • Стать партнером
    • Услуги для партнеров
    • Зарегистрировать бухгалтерскую фирму
    Услуги
    • Найти партнера
    • Найти бухгалтера
    • Встреча с экспертом
    • Услуги по внедрению
    • Отзывы клиентов
    • Поддержка
    • Обновления
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Заказать демонстрацию
  • Цены
  • Поддержка

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Бухгалтерия
  • Склад
  • PoS
  • Проекты
  • MRP
All apps
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Все посты Люди Значки
Теги (Смотреть все)
odoo accounting v14 pos v15
Об этом форуме
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Все посты Люди Значки
Теги (Смотреть все)
odoo accounting v14 pos v15
Об этом форуме
Помощь

[Odoo V8 - WebsiteBuilder module] Page content in another page

Подписаться

Получайте уведомления о появлении активности в этом посте

Этот вопрос был отмечен
website_builderodooV8
3 Ответы
3256 Представления
Аватар
Tessa Roberts

Hi !


First, I would like to apologize because English is not my native language.

I have a question about the WebsiteBuilder module in Odoo V8.

I am a beginner on Odoo...so I am trying things to see if it works or not.


I would like to know if it possible to display a page content (or a part of a page content) in another page.

To be clear, I have created 2 pages. PageX and PageY.

I'd like to display the content of PageY on PageX.


I tried to "just" call the page name, like that :


<t t-name="PageY"> 
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
PageY content
</div>
</div>
</t>
</t>

<t t-name="PageX">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
PageX content
<t t-call="PageY" />
</div>
</div>
</t>
</t>

This works but on PageX, the header, the menu and the footer are display twice. (That is normal...)

Is there a way to add only the content of the page ?

Something like that : 

<t t-name="PageY"> 
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
<t t-name="pageY_content">PageY content</t>
</div>
</div>
</t>
</t>

<t t-name="PageX">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
PageX content
<t t-call="pageY_content" />
</div>
</div>
</t>
</t>

I tried but the t-name="PageY_content" declaration is not recognized by the system.

I tried to create a "hidden page" (not visible by the menu) and called it "PageY_content". I have the following error :

Odoo Warning

ValidateError

Field(s) 'arch' failed against a constraint:Invalid view definition

Error details: Model not found : False

Error content : View 'pageX' [view_id:xxxx, xml_id:website.pageX,> model:n/a, parend_id:n/a]


I would like to know if there is a way to have this result "properly" ? 

Is the "PageCeption" system impossible to implement or contrary to a good use of the module?

Would it be possible, using the HTML editor, to create the content elsewhere and be able to call it wherever I want?


Thank you in advance for your assistance

0
Аватар
Отменить
Tessa Roberts
Автор

Hi !

Thanks for your help !

Do you know where I need to create this template ? I tried to add it in the website_templates.xml file and then I "updgraded" the website builder module.

But when I try to call it in one of my pages, I have the following error :

500 : Internal Server Error

Error message : Invalid template id 'contentY_id'

QWeb Error message : Loader could not find template 'contentY_id'

Do you know how to solve this problem ? And is there a way to display the new template in the HTML editor ?

Аватар
Tessa Roberts
Автор Лучший ответ

Hi !

I finally managed to call the template anywhere I want.

And I managed to display it in the HTML editor. But now, do you know if there is a way to "edit" the content of the template using the graphical editor (instead of the HTML editor) of the website module ? 

My new template is not really a page, so I can not access it from a menu or from the URL. I can only edit it using the HTML editor.

 

<t t-name="mytemplate"> Editable in the HTML editor but not editable using the graphical editor
<!-- content of my template -->
</t>

<t t-name="myPage"> Editable in the HTML editor AND editable using the graphical editor
<!-- content page -->
<t t-call="mytemplate" /> (this display the content of mytemplate)
</t>

<t t-name="myOtherPage"> Editable in the HTML editor AND editable using the graphical editor
<!-- content page -->
<t t-call="mytemplate" /> (this display the content of mytemplate)
</t>
0
Аватар
Отменить
Аватар
Bharat Parmar (bhp)
Лучший ответ

create one template that you need to use in both page and don't use <t t-call="website.layout"> in this template .

<template id="contentY_id">
     <!--Your_pageY_content-->
</template>

and use this template in both page like this,

<t t-name="PageX">
    <t t-call="website.layout">
        <div id="wrap" class="oe_structure oe_empty">
            <div class="oe_structure">

                <!--Your_pageX_content-->

                <t t-call="contentY_id"/>
            </div>
        </div>
    </t>
</t>

<t t-name="PageY">
    <t t-call="website.layout">
        <div id="wrap" class="oe_structure oe_empty">
            <div class="oe_structure">
                <t t-call="contentY_id"/>
            </div>
        </div>
    </t>
</t>

I hope this will helps you. 

0
Аватар
Отменить
Не оставайтесь в стороне – присоединяйтесь к обсуждению!

Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!

Регистрация
Похожие посты Ответы Просмотры Активность
Odoo V8 with Internet Explorer
compatibility website_builder odooV8
Аватар
0
сент. 16
7114
(((Guia~JetBlue!@!Oficial^Hablo//+182)) ¿Cómo llamar a JetBlue desde República Dominicana?
website_builder
Аватар
0
дек. 25
41
(((Guia~ Latam!@!Oficial^Hablo//0800))) ¿Cómo llamar a LATAM Airlines desde Chile?
website_builder
Аватар
0
дек. 25
142
Website Builder theme breaks after upgrading to Odoo 17 — CSS not loading
website_builder
Аватар
0
дек. 25
32
AssertionError while install Appoinment in website
website_builder
Аватар
Аватар
Аватар
2
нояб. 25
516
Сообщество
  • Видео уроки
  • Документация
  • Форум
Открытый исходный код
  • Скачать
  • Github
  • Runbot
  • Перевод
Услуги
  • Хостинг Odoo.sh
  • Поддержка
  • Обновление
  • Индивидуальные решения по доработке
  • Образование
  • Найти бухгалтера
  • Найти партнера
  • Стать партнером
О нас
  • Наша компания
  • Активы бренда
  • Cвяжитесь с нами
  • Вакансии
  • Мероприятия
  • Подкаст
  • Блог
  • Клиенты
  • Правовые документы • Конфиденциальность
  • Безопасность
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo – это набор бизнес-модулей с открытым исходным кодом, который закроет все потребности вашей компании: CRM, E-commerce, Бухгалтерия, Склад, POS, управление проектами и др.

Odoo сочетает в себе простоту использования и полную интеграцию всех бизнес-процессов в одной системе.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now