I want to write a module in Odoo's website that can work similarly to ReactJs with state. How can I achieve that?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
First you need to create a controller that will serve the data you want to show on the website
After that you have to create your component as explained https://www.odoo.com/documentation/15.0/developer/reference/frontend/owl_components.html
Inside this component, you will fetch the data from the controller and return them to the state
You can find a fully working example here in the module bookstore_portal I did when I was learning OWL, I just updated it to v15 and hope it will help you
thanks ABDOU NASSER, it greats
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
maj 22
|
2640 | ||
|
2
lip 25
|
1282 | ||
|
1
maj 25
|
797 | ||
|
2
maj 25
|
1391 | ||
|
5
mar 25
|
2876 |
Which Odoo version are you using ?
i am use version 15