Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3804 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
dez. 19
6191
0
out. 18
3649
2
mar. 24
7167
0
abr. 18
33257
1
mar. 18
6348