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

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


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Non-dict expression แก้ไขแล้ว
2
ก.ค. 22
2839
1
ก.ค. 17
3186
1
ก.ค. 22
3174
0
มิ.ย. 20
4847
3
ม.ค. 24
14413