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

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 24
1717
1
ก.ย. 23
4595
Non-dict expression แก้ไขแล้ว
2
ก.ค. 22
2737
1
ก.พ. 17
5452
1
มี.ค. 15
15919