Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3527 มุมมอง

Hello everyone, I'm feeling a bit confused about how to retrieve data from my backend model and display it on my website. For instance, I'm using a drag-and-drop component provided by the website's model. How can I display data from my custom model, like images, in a carousel on the website? Additionally, I'd like to know how to submit a website form and insert the submitted data into my custom model. Any guidance would be greatly appreciated!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can use a controller in odoo to achieve this.Controllers are the class which lets you handle website requests. So create a controller and set the form action as the controller route with controller type as http and with post method.


You can refer to this blog for more information: https://www.cybrosys.com/blog/web-controllers-in-odoo

Hope it helps

อวตาร
ละทิ้ง
ผู้เขียน

thanks I'll try it

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 22
9461
0
ต.ค. 21
2559
0
มี.ค. 21
2642
1
มี.ค. 21
5545
1
มิ.ย. 19
3055