Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
7238 Ansichten

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.

Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Autor Beste Antwort

@vasanth

Thanks..

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

Avatar
Verwerfen

give your model name in that place. it will work

Autor

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Mai 24
1717
1
Sept. 23
4595
2
Juli 22
2737
1
Feb. 17
5452
1
März 15
15919