跳至内容
菜单
此问题已终结
1 回复
3983 查看

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
9754
4
1月 20
3506
0
11月 18
4755
0
4月 17
4074
2
3月 15
5404