コンテンツへスキップ
メニュー
この質問にフラグが付けられました
5405 ビュー

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

関連投稿 返信 ビュー 活動
1
3月 15
4102
1
3月 15
4243
5
8月 24
2587
5
8月 24
46681
2
4月 24
2570