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
2942 Zobrazení

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

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
lis 22
197
1
bře 22
6073
1
čvn 25
1777
3
čvc 25
3381
1
kvě 25
1529