Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7318 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä Paras vastaus

@vasanth

Thanks..

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

Avatar
Hylkää

give your model name in that place. it will work

Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
toukok. 24
1801
1
syysk. 23
4693
2
heinäk. 22
2843
1
helmik. 17
5519
1
maalisk. 15
16001