跳至內容
選單
此問題已被標幟
1 回覆
3803 瀏覽次數

Refer: currency_id = fields.Many2one(related='order_id.currency_id', depends=['order_id'], store=True, string='Currency', readonly=True)

Is it work same as @api.depend()

頭像
捨棄
最佳答案

Hello,

i think depends it is working same as @api.depends. in odoo you can find the answer like this.

'depends': None,                # collection of field dependencies

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 19
6191
0
10月 18
3648
2
3月 24
7167
0
4月 18
33257
1
3月 18
6348