Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

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

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
qweb
2 Replies
20092 Rodiniai
Portretas
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
Portretas
Atmesti
Portretas
Ray Carnes
Best Answer

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
Portretas
Atmesti
Tyler K
Autorius

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
Autorius

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

Portretas
Sehrish
Best Answer

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
Portretas
Atmesti
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!

Registracija
Related Posts Replies Rodiniai Veikla
Odoo 18: Display image from char field containing url in qweb form
qweb
Portretas
Portretas
1
liep. 25
3085
PDF Export Option for QWeb Reports in odoo 17.0
qweb
Portretas
Portretas
1
geg. 25
4020
QWeb: use t-if to check birthday date Solved
qweb
Portretas
Portretas
1
bal. 25
3364
Odoo 17 - QWeb Reports with External Datasource Solved
qweb
Portretas
Portretas
1
vas. 25
2752
Tree line field shrinked/cut
qweb
Portretas
0
spal. 24
2253
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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