Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3707 Переглядів

Assumption: fields.related is needed to display the fields of two related tables in the same view.

one2many, many2one and many2many can be specified in Field Type in Settings>Technical>Database Structure>Models Create: Fields

Аватар
Відмінити
Найкраща відповідь

Pulled from the documentation.  Here are the relevant part:

A special case of computed fields are related (proxy) fields, which provide the value of a sub-field on the current record. They are defined by setting the related parameter and like regular computed fields they can be stored:

nickname = fields.Char(related='user_id.partner_id.name', store=True)

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лип. 23
2010
2
бер. 15
9225
2
лют. 25
886
0
трав. 24
1209
1
серп. 23
4090