Skip to Content
मेन्यू
This question has been flagged
1 Reply
4086 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
6379
0
अक्तू॰ 18
3879
2
मार्च 24
7368
0
अप्रैल 18
33760
1
मार्च 18
6625