Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3750 Zobrazení

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šit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 19
6144
0
říj 18
3570
2
bře 24
7131
0
dub 18
33198
1
bře 18
6289