跳至內容
選單
此問題已被標幟
1048 瀏覽次數

I have a form view where the user can upload a csv file. 

source_file = fields.Binary(string='CSV Input', attachment=True)


I want to have a button 'Validate CSV' that will run a js function to validate the csv for any non-printable characters and show any rows that contain invalid characters in the view

I am new to odoo development so I am not able to bind the js function to the button and access the file in the js function

I can figure out the validation logic but I need help with the js file syntax such that it will be bound to the button and show the result in the view

Thanks a lot


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 22
2849
1
7月 17
3187
1
7月 22
3192
0
6月 20
4854
3
1月 24
14431