I can't work out the syntax for the qweb template boolean widget and I haven't seen any examples in the wild. A checkbox is fine but I like the look of the slide switch, I guess that's boolean_toogle but I'm not sure.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
The concept of widgets is mostly related to the backend. For the qweb only a few widgets is developped, e.g. a contact address. The widget 'toggle_active' is also implemented for Odo backend views.
A cool thing is that you can apply any sort of styles in qweb by your own. For isntace, you can use an input type radio or upgrade appearance of an input type checkbox..
Basically, you can implement any sort of Javascript and CSS to make you. For an Odoo specific example: look at https://github.com/odoo/odoo/blob/12.0/addons/website/views/website_navbar_templates.xml -- the class 'js_publish_btn'.
OK thanks. that would explain why I couldn't find any examples. I did see widgets for monetary, date, and float from memory, I thought all of them were available.
I was a bit confused about portal users and the backend, but i shall do some reading and experimenting. I think now I don't need to use qweb at all and can do what I want really quickly with a backend view (if that's the right terminology, i mean these https://www.odoo.com/documentation/12.0/reference/views.html)
thanks again.
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
0
dic 20
|
3245 | ||
|
0
ott 16
|
17946 | ||
|
1
lug 24
|
1222 | ||
|
1
lug 23
|
3815 | ||
|
0
mar 24
|
2752 |