Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7259 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

@vasanth

Thanks..

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

Ảnh đại diện
Huỷ bỏ

give your model name in that place. it will work

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 24
1741
1
thg 9 23
4637
Non-dict expression Đã xử lý
2
thg 7 22
2765
1
thg 2 17
5478
1
thg 3 15
15941