Hi people,
I'm very new on ODOO and I need to take care about a small task. I'm ready to learn new things :) who can please help me?
I need to get one value and show it on front-end product template. I've already found how to edit backend, add custom variables and how to add them to frontend. But I didn't find how to get a purchased amout of a individual product and how to show it on front-end product template.
Can someone please help me?
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ờ
Thanks to all, I have already solved this. I have found a variable "product.sales_count" and this gave a value of purchased products. Is there some reason why not to use this variable?
Thanks
Hello,
normally if you have installed "Purchase" application and bought the concerned product, you can see a smart button ("x Units Purchased") in the product template form.
In odoo 14 (and maybe lower version too) the field name is "purchased_product_qty".
Hope it will help you.
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 | |
---|---|---|---|---|
product.template inherit
Đã xử lý
|
|
2
thg 11 22
|
12666 | |
|
2
thg 9 25
|
214 | ||
|
2
thg 9 25
|
375 | ||
|
1
thg 9 25
|
244 | ||
|
3
thg 9 25
|
428 |