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

can we related a field to a related field ?

I did 1st object:

_columns = { 'sale_price_unit': fields.related('sale_line_id','price_unit',string='Prix de vente',type='float', store=True, readonly=True), }

2nd object:

_columns={ 'sale_price_unit': fields.related('procurement_id','sale_price_unit',string='Prix de vente',type='float', store=True, readonly=True), }

the value of the 2nd object alwayse equal 0.0 !!

形象
丢弃
编写者 最佳答案

Solution

_columns={

'sale_price_unit': fields.related('procurement_id','sale_line_id','price_unit',string='Prix de vente',type='float', store=True, readonly=True),

}

形象
丢弃
相关帖文 回复 查看 活动
1
6月 18
3986
2
11月 16
6287
1
1月 19
3682
0
5月 17
3088
1
10月 23
1866