Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2917 Vistas

IN ODOO 15 I HAVE CREATED A FIELD x_MONTH in account.move model. I would like to have this field (related?) in the invoice.account.report model.

How should i create the related field in this model?

Thanks

Avatar
Descartar
Mejor respuesta

Hello Javier, 

You need to add first M2O (account.move) field in  invoice.account.report and add related field. 

XYZ = fields.Many2one(account.move)

PQR = fields.Date(related=XYZ.pqr)

Thanks.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
nov 22
197
1
mar 22
6011
1
jun 25
1712
3
jul 25
3336
1
may 25
1478