Skip to Content
मेन्यू
This question has been flagged
1 Reply
3976 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
1
दिस॰ 19
6304
0
अक्तू॰ 18
3785
2
मार्च 24
7308
0
अप्रैल 18
33538
1
मार्च 18
6507