跳至內容
選單
此問題已被標幟
2 回覆
5097 瀏覽次數

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.         >
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
5月 22
3405
1
12月 20
3690
1
1月 19
5249
2
12月 22
2520
1
8月 20
8952