Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

How to use my own template?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
QWebTemplateNotFound
2 Antwoorden
8863 Weergaven
Avatar
Jon Wong

I create a new theme module, extended 'web.main.Home' controller, and tried to render my own template:

<template id="theme.login" name="my_login">


I get error: Template 'theme.login' not found.


Is there something I must do to register my template with Odoo?


@Axel

What about this tutorial (http://odoo-80.readthedocs.org/en/latest/guides/themes.html) that uses id of "website.hello"?

0
Avatar
Annuleer
Avatar
Axel Mendoza
Beste antwoord

Your template need to be like this:

<template id="theme_login" name="my_login" inherit_id="web.main.Home">

remove the '.' in the template id


1
Avatar
Annuleer
Avatar
Jon Wong
Auteur Beste antwoord

@Axel

What about this tutorial (http://odoo-80.readthedocs.org/en/latest/guides/themes.html) that uses id of "website.hello"?

0
Avatar
Annuleer
Axel Mendoza

when you put a '.' in an template or record Odoo will split the string to get the first part as the module and the second part as the id that you want to use for your template/record to change that template/record and that id need to exist registered in ir.model.data to be found and the id 'website.hello' is something created for that example, it's not part of Odoo as neither 'theme.login', if this is a template defined in a module named 'theme' with the name 'login' then you need to be sure that the module it's installed and put a depend with that module, otherwise change the id of your template accordingly

Jon Wong
Auteur

@Axel: I tried what you suggested, id of "theme_login", name of "my_login", inherit_id of "web.main.Home". The new error is "Invalid template id: 'theme_login'". The reason I don't want to inherit "web.login" is because I want to completely override that template.

Jon Wong
Auteur

@Axel: Sorry, my mistake. The error is actually: "ParseError: "External ID not found in the system: web.main.Home" while parsing".

Jon Wong
Auteur

@Axel: What works is this: id of "web.theme_login", no inherit_id attribute. Can you explain to me why that works and why your suggestion didn't work? I just hope to understand Odoo more. I'll mark your explanation as the answer to this question. Thanks!

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
QWebTemplateNotFound
QWebTemplateNotFound
Avatar
Avatar
3
apr. 15
5240
QWebTemplateNotFound Error when trying to run a very simple custom report
QWebTemplateNotFound
Avatar
Avatar
1
mrt. 15
5182
500 Internal server error on shop/payment page Opgelost
error odooV8 QWebTemplateNotFound
Avatar
Avatar
1
feb. 16
7755
QWebException: "Invalid template id: 'header_foobar'" while evaluating "translate_doc(doc_id, doc_model, 'partner_id.lang', 'account.report_invoice_foobar_document')"
qweb reports odooV8 QWebTemplateNotFound
Avatar
0
nov. 22
7446
QWebTemplateNotFound: External ID not found in the system Opgelost
error qweb QWebException QWebTemplateNotFound
Avatar
Avatar
2
apr. 15
12788
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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