跳至內容
選單
此問題已被標幟
1 回覆
3182 瀏覽次數

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

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
11月 22
197
1
3月 22
6714
2
10月 25
2572
1
9月 25
2567
3
7月 25
4009