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

Hello,
i have upgrade V19 which is error all relate cross report so how can i fix it ? if can, share video to me 

error view :
Expected: cross_report(<report_id>|<xml_id>)Example: cross_report(my_module.my_report) or cross_report(123)

Best regards, KH

頭像
捨棄

"i have upgrade V19" - like, how..? Since there is no official upgrade script around yet, what did you do exactly?

最佳答案

Hi,


In Odoo 19, cross reports must be called using the cross_report() function with a valid XML ID or numeric ID. The error occurs when old syntax or invalid references are used. To fix it, update your XML report definitions to use the module XML ID in the report_name field, and replace any Python calls with cross_report('my_module.my_report') or cross_report(123). After updating, restart Odoo and upgrade the module to ensure reports generate correctly without errors.

Please provide more details about the error.


Hope it helps

頭像
捨棄
作者 最佳答案

I dont know too but i have checking ODOO document which is view "  cross_report(xml_id | report_id) Used to match an expression from another report targeted by the xml_id or the report ID itself"

 But i dont know how can it do now ?
Best regards, KH

頭像
捨棄