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

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
6217
0
10月 18
3678
2
3月 24
7209
0
4月 18
33365
1
3月 18
6378