This question has been flagged
3694 Views

Hi all,

I searched a lot for get an answer but I have found only the QWeb template that can be usefull for my problem, but it seem also too much complicated, and I just want a simple-as-possible solution.

I need to create a simple page in my custom module where I can put some text and one simple button that will just open a window where select a file on the computer of the user. For now I just created this button inside a odoo form view, but obviously is pretty wrong because the form in odoo is used to create a new record of a table, not for my purpose. So I wonder if there is a way to just create a simple custom view where put that button, that will eventually call, after the selection of the file, a method of my module.

Thank you.

Avatar
Discard

'your_field':fields.binary('Your fieldname') If you want a button to select a file on the computer means, you can use this

Author

Thank You! This is really good to know, I missed that information