Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3817 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 19
6203
0
okt. 18
3660
2
mar. 24
7172
0
apr. 18
33290
1
mar. 18
6360