Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Where can I use QWeb and how do I use it?

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
qweb
2 Réponses
20099 Vues
Avatar
Tyler K

I understand that QWeb is a templating language. What I don't understand is where and how to use it. The questions below should demonstrate my confusion.

  • Can I directly use QWeb directives inside of a Form View? That is, can I create a template on the fly inside of a Form View?

  • Can I create a window action that opens up a QWeb View instead of a Form View?

  • How is a QWeb template aware of a model's fields?

0
Avatar
Ignorer
Avatar
Ray Carnes
Meilleure réponse

I have not seen QWEB directives used inside FORM views, just KANBAN views. (Also Reports and Web Pages).  I don't know of a way to use it outside these three places.

Odoo has a number of examples you can look at to learn how to use it to customize Kanban views within Form Views:  base.view_partner_form (res.partner.form) is a good one.

Qweb knows about models and fields via variables like doc_model

See:

https://www.odoo.com/documentation/11.0/reference/qweb.html

https://www.odoo.com/documentation/11.0/reference/reports.html 

2
Avatar
Ignorer
Tyler K
Auteur

Thanks for your response.

I spent a couple of hours yesterday researching QWeb in the docs, but I didn't find the information you gave above. I didn't look at the reports documentation though.

I may be mistaken, but this information seems to be left out of the documentation. The QWeb documentation page seems to focus exclusively on the directives available in QWeb.

Ray Carnes

The documentation isn't always enough to help people as the learn to work with Odoo. The system is Open core so looking at the source code, including how Odoo uses QWEB within the default Views and Reports, is a great way to get additional information.

Tyler K
Auteur

Do you have any tips for deep diving through the source code? Also, are there any good resources that explain the Odoo's architecture in depth? Most documentation I have found is a surface level treatment of the subject.

Ray Carnes

I find a combination of the following useful to me, but it really depends on your background: (1) the prior documentation platform at https://doc.odoo.com/trunk/server/ is still useful and explains the architecture. (2) there are a series of books you can purchase: https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Dstripbooks&field-keywords=odoo (3) many useful videos at https://www.youtube.com/channel/UCkQPikELWZFLgQNHd73jkdg (4) slides from the Odoo Experience at https://www.odoo.com/slides/odoo-experience-2017-12 (5) I suggest learning how to use pdb (python debugger) along the lines of what is outlined at http://www.zbeanztech.com/blog/debugging-openerp

Avatar
Sehrish
Meilleure réponse

Qweb is a reporting engine or template engine used by odoo. By using this (qweb) we can create reports in odoo. It uses XML to create design of reports as per your need. We can also say that qweb is XML based reporting engine for OpenERP/Odoo.


0
Avatar
Ignorer
Sehrish

http://learnopenerp.blogspot.com/2016/09/how-to-create-custom-reports-in-odoo.html

http://learnopenerp.blogspot.com/2016/11/how-to-create-qweb-reports-in-openerp.html

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Odoo 18: Display image from char field containing url in qweb form
qweb
Avatar
Avatar
1
juil. 25
3085
PDF Export Option for QWeb Reports in odoo 17.0
qweb
Avatar
Avatar
1
mai 25
4022
QWeb: use t-if to check birthday date Résolu
qweb
Avatar
Avatar
1
avr. 25
3365
Odoo 17 - QWeb Reports with External Datasource Résolu
qweb
Avatar
Avatar
1
févr. 25
2754
Tree line field shrinked/cut
qweb
Avatar
0
oct. 24
2257
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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