Skip to Content
Menu
This question has been flagged
1 Odpoveď
2898 Zobrazenia

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šiť
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.

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
nov 22
197
1
mar 22
6011
1
jún 25
1707
3
júl 25
3330
1
máj 25
1471