Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 22
2736
1
lip 17
3077
1
lip 22
3020
0
cze 20
4747
3
sty 24
14305