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

Hi,

Is it possible to show fields from another model in a model view without creating related fields?

because i need to show a lot of fields and don't want to duplicate the data

Thank you

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

Hi Ali:

Yes. This is possible. You can do it using computed fields.

The following link may be helpful: https://www.odoo.com/documentation/12.0/reference/orm.html#basic-fields


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

Thank you, but i don't want to add any new field, i just want to show Model A fields in Model B view

A field has to exist in the underlying model before you can display it in the view. If you do not selected the "Stored" attribute, the field will be added to the model without storing it's contents in the database.

الكاتب

OK Thanks

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
نوفمبر 19
3847
2
مارس 19
8661
5
أغسطس 24
46688
4
مايو 24
7144
2
أبريل 24
2575