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

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

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

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


Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

OK Thanks

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 19
3923
2
thg 3 19
8736
5
thg 8 24
46887
4
thg 5 24
7268
2
thg 4 24
2686