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

Hi,

I have a scenario of which I am creating a custom module, in which there are two models Course Category and Course and inside each course category there can be multiple courses. I want to show them in master/detail page like we have in case of Sales order or purchase order. 

I have successfully defined the models but I don't know how to create the master-detail page? How to create that subpage(having lines items of course).

if anyone can briefly describe that will be great.

Thanks alot    

الصورة الرمزية
إهمال
أفضل إجابة

Follow this link 


https://www.cybrosys.com/blog/how-to-create-module-in-odoo12

you will understand basic of how you can create master detail in Odoo then can cover you case....

الصورة الرمزية
إهمال
الكاتب

I know how to create module and standalone models. I want to know about the subpage(line item) algorithmically like how to display many2One field with line items? Any widget or what?

الكاتب

I know how to create module and standalone models. I want to know about the subpage(line item) algorithmically like how to display many2One field with line items? Any widget or what?

أفضل إجابة

Check the code of one of these examples you have mentioned.

الصورة الرمزية
إهمال
الكاتب

I did but they are quite complicated. A simple example with custom model like i have shared above will be grateful. Thanks

الكاتب

I know how to create module and standalone models. I want to know about the subpage(line item) algorithmically like how to display many2One field with line items? Any widget or what?

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يونيو 19
4127
1
يونيو 19
3402
0
يونيو 20
4104
1
مايو 19
3776
2
يوليو 24
14330