تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
7319 أدوات العرض

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
مايو 24
1802
1
سبتمبر 23
4699
Non-dict expression تم الحل
2
يوليو 22
2844
1
فبراير 17
5519
1
مارس 15
16002