I have a use case where I need to display a video(youtube/vimeo) based on a field which is updated by the portal user.
I could able to get the url field from the portal and display it in the form view for the internal user(admin) but not able to render the video inside the form.
Reason: dynamic templating using t-if, t-att, t-src, etc., which is common in QWeb templates, is not allowed in standard XML form views for odoo 17.
Can anyone guide me in embedding a youtube video to a form view.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi,
Try adding a new html field in your model and there is option to embed video and auto play it.
I want to update the video dynamically based on my field value. This one is static.
Then try adding url in a new field and get values to html field from there
I did follow your steps on using python: https://imgur.com/carbon-Xs2iteV
I renders just a empty field not rendering the video.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 1 22
|
48084 | ||
Open form in view mode?
Đã xử lý
|
|
4
thg 12 21
|
31893 | |
|
1
thg 12 21
|
7736 | ||
|
2
thg 3 15
|
8758 | ||
|
2
thg 3 15
|
5080 |