Skip to Content
Menu
This question has been flagged
1 Odpoveď
3779 Zobrazenia

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()

Avatar
Zrušiť
Best Answer

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
dec 19
6178
0
okt 18
3605
2
mar 24
7156
0
apr 18
33233
1
mar 18
6338