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

I want to display a form that have some fields.

Initially I have a button in a custom module.When click is made on that button,it should display a tree view or a form view that may have some fields.

Please help me how to do this.

Thanks in advance.

アバター
破棄
最善の回答

hi yogesh,

please refer this link.it will helps you

https://www.odoo.com/forum/help-1/question/create-a-new-form-by-clicking-custom-button-81542#answer-81554

アバター
破棄
著作者 最善の回答

@vasanth

Thanks..

In that link they are using different model ,but i want to display the tree view in the same model.

アバター
破棄

give your model name in that place. it will work

著作者

i tried but i am getting error AttributeError: 'modelname' object has no attribute 'button_function' how to solve this?

関連投稿 返信 ビュー 活動
1
5月 24
1741
1
9月 23
4637
2
7月 22
2765
1
2月 17
5477
1
3月 15
15941