コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4922 ビュー

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?

アバター
破棄
著作者 最善の回答

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.

アバター
破棄
関連投稿 返信 ビュー 活動
2
11月 22
12662
2
9月 25
203
2
9月 25
374
1
9月 25
239
3
9月 25
425