Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

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

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
qweb
2 Răspunsuri
20089 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Imagine profil
Ray Carnes
Cel mai bun răspuns

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
Imagine profil
Abandonează
Tyler K
Autor

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
Autor

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

Imagine profil
Sehrish
Cel mai bun răspuns

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
Imagine profil
Abandonează
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

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Odoo 18: Display image from char field containing url in qweb form
qweb
Imagine profil
Imagine profil
1
iul. 25
3085
PDF Export Option for QWeb Reports in odoo 17.0
qweb
Imagine profil
Imagine profil
1
mai 25
4019
QWeb: use t-if to check birthday date Rezolvat
qweb
Imagine profil
Imagine profil
1
apr. 25
3363
Odoo 17 - QWeb Reports with External Datasource Rezolvat
qweb
Imagine profil
Imagine profil
1
feb. 25
2752
Tree line field shrinked/cut
qweb
Imagine profil
0
oct. 24
2253
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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