Hi, I'm trying to dynamically update values on QWeb website but every tutorial I've found concerns the Web Client not the Website.
I saw a custom Odoo framework called "Owl" but how do I actually use it inside a webpage? Or should I use something else for that? Could you lead me to some tutorials on that?
Lets say I have template like this:
https://pastebin.com/739VZY1r
And I need a way to dynamically update the table below. After a calculation in JavaScript or Python.
How do I do this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
OWL (Odoo Web Library) is the next generation of the JavaScript framework that is being developed by Odoo. It is expected to be available in the next major release i.e. Odoo 14, however, I have not seen any firm dates yet.
You can find more information about OWL here: https://github.com/odoo/owl/blob/master/doc/readme.md
and here: https://odoo.github.io/owl/
This video from Odoo Experience 2019 also sheds some light on it:
https://youtu.be/BdcFIudy84o?t=1688
So how do I do this the "old" way? I've read the JavaScript reference but it is describing the Web Client - not the Website.
There's a separate tutorial on how to develop a website in Odoo which may help.
Here's the link:
https://www.odoo.com/documentation/13.0/howtos/website.html#to-the-browser
But I have a website. I have a controller and javascript event ready. All I need is a way to dynamiclly update value on the QWeb. Is there anything like that in this docuemtention?
There doesn't seem to be any documentation for this. The other option I can suggest is to write a custom js file and include it in the web.assets_frontend to call a custom backend controller which returns the required data. I have not done it but conceptually it should work.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Jun 20
|
2011 | ||
|
1
Feb 24
|
2045 | ||
|
0
May 23
|
724 | ||
|
0
Oct 22
|
82 | ||
|
0
Sep 22
|
162 |