Skip to Content
Menu
This question has been flagged
1 Atsakyti
2902 Rodiniai

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

Portretas
Atmesti
Best Answer

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
lapkr. 22
197
1
kov. 22
6011
1
birž. 25
1707
3
liep. 25
3332
1
geg. 25
1473