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

How to add screenshot in a custom module so it can be displayed in the "Screenshot" tab alongside "Description", "Techical Data" and "Features"?


Edited:
The Axel solution is meant to work in Odoo, as explained also here https://www.odoo.com/apps/upload/ (although the "Screeshot" tab is still there and remains empty) but I'm working with OpenERP 7.0.

[version 8.0]:
The Axel solution works but the Screenshot tabs remains empty, although I put the "images key of the manifest, like 'images': ['images/main_screenshot.png']".

[version 7.0]:
None of the solutions are working, both index.html and 'images' key are ignored.

อวตาร
ละทิ้ง

you want to add another tab screen shot after Features page?

ผู้เขียน

Hi Solanki, I did as Axel Mendoza explained (that is suggested here also https://www.odoo.com/apps/upload/) but my intent was more likely the one you understood. The Axel solution is meant to work in Odoo (although the "Screeshot" tab is still there and remains empty) but I'm working with OpenERP 7.0. [version 8.0]: The Axel solution works but de Screenshot tabs remains empty, although I put the "images key of the manifest, like 'images': ['images/main_screenshot.png']". [version 7.0]: None of the solutions are working, both index.html and 'images' key are ignored.

still without a solution?

คำตอบที่ดีที่สุด

You need to specify the "Description" of the module in a file like (example for the crm module):

/openerp/addons/crm/static/description/index.html

Put the needed images inside the description folder and use directly by their names, or provide the path to the image relative to the description folder or absolute path that need to begin with the module name

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

Hi Axel, this solution works maybe for version 8.0 and above, but I'm still looking for a way to do the same in version 7.0

ผู้เขียน

Now the screenshots seems handles by the 'images' key in __openerp__.py dictionary:

'images': [

'static/description/wht_screenshot.PNG',

],

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 24
2011
Menu not visible after installing module แก้ไขแล้ว
2
ม.ค. 24
7776
2
มิ.ย. 22
5663
0
มี.ค. 22
3896
4
ก.พ. 21
55082