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

how can i replace 

field.related to use it in v8 

'product_id': fields.related('order_line', 'product_id', type='many2one', relation='product.product', string='Product'),
アバター
破棄
最善の回答

In the new API, there is no fields.related. You can try

number = fields.Char(related='move_id.name', store=True, readonly=True, copy=False)

where move_id is a Many2one relation

アバター
破棄
関連投稿 返信 ビュー 活動
3
9月 21
9801
4
1月 20
3554
0
11月 18
4785
0
4月 17
4116
2
3月 15
5445