Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
8734 Представления

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

Related Posts Ответы Просмотры Активность
0
нояб. 19
3817
2
мар. 19
8645
5
авг. 24
46660
4
мая 24
7129
2
апр. 24
2559