コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3708 ビュー

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)

アバター
破棄
関連投稿 返信 ビュー 活動
1
7月 23
2010
2
3月 15
9225
2
2月 25
886
0
5月 24
1209
1
8月 23
4090