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

Hi, I'm trying to create a new sign up form in my website; 

I modified the layout and added new fields, then I created a radio button to select the user type (if it is a private or a company user) and the script in JS in its path (custom_addon/static/src/js/...) but when I upgrade the module, it return this error: "External ID not found in the system: web.assets_backend".


I leave my code for further information:


every help is appreciated, thanks in advance!

อวตาร
ละทิ้ง
i have followed but it is not working
คำตอบที่ดีที่สุด

Hi,

In your manifest you have given 'Assets' as :

'assets': {
'web.assets_backend': [
'signup_form_addon/static/src/js/radio_check_form.js '
]
},

Instead try to give it as :

'assets': {
'web.assets_frontend': [
'signup_form_addon/static/src/js/radio_check_form.js '
]
},

Regards

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

If you are on version 14, remove the js in the manifest file. If you are on 15,16, remove the js in the template file as you already declare it in the manifest.

  1.         id="assets_backend" name="radio check form" inherit_id="web.assets_backend">
  2.             expr="." position="inside">
  3.                 >
  4.             >
  5.         >
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 22
3545
1
ธ.ค. 20
3844
1
ม.ค. 19
5382
2
ธ.ค. 22
2678
Get data from JS file to XML file แก้ไขแล้ว
1
ส.ค. 20
9089