Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
185 Prikazi

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

Avatar
Opusti

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

Best Answer

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

Avatar
Opusti
Avtor Best Answer

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

Avatar
Opusti