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

Hi All,

I followed the following example:

openerp-web-v7.readthedocs.org/en/latest/module.html

to setup a basic module.

I can install it using the web interface (install/update/upgrade) and no errors are shown.

In order to access the example it should be OK to go to: localhost:8069/web_example/static/src/js/first_module.js to directly load the module (without the need to find it in the menu of openERP)

However it is not executing but just showing the JS code as plain text. No errors or anything else except the code from the example here...

I googled but cannot find anything to solve this (configuration?) problem...might be versy simple though...

Any help is welcome ;-) Thanks...

Wiebe

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

A script js must be loaded by the web page and not dirrectly, for exemple in ths page the openerp.com use some js file to do some work on the page e:

help.openerp.com/m/openerp/js/help_openerp.js

If you copy this link on the url you will see the code js but it will not be executed, to be executed it must be loaded by the page itself.

I hope this answer respond to your question.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks I got the module working.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
how to read field values using js แก้ไขแล้ว
1
พ.ค. 25
8372
1
พ.ย. 24
5117
0
พ.ค. 24
2238
Odoo 14: Reload Point Of Sale แก้ไขแล้ว
1
เม.ย. 24
2163
0
ส.ค. 21
9196