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

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.

อวตาร
ละทิ้ง

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

ผู้เขียน

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
4138
1
มี.ค. 15
4296
5
ส.ค. 24
2727
Select multiple elements with XPath แก้ไขแล้ว
5
ส.ค. 24
46799
2
เม.ย. 24
2616