The module generates an error when installed on a 16.0 database
To Reproduce
16.0:
Steps to reproduce the behavior:
Install the module on a 16.0 sh database
Expected behavior
No installation errors
Additional context
The error seems to be a missing image file, this code is supposed to get a file using an xml_id but receives 'undefined' instead of an actual ID.
Module
sale_layout_category_hide_detail
Describe the bug
The module generates an error when installed on a 16.0 database![image](https://github.com/OCA/sale-reporting/assets/113891441/6b340949-579b-4794-b04e-268760d205e1)
To Reproduce
16.0:
Steps to reproduce the behavior:
Expected behavior No installation errors
Additional context The error seems to be a missing image file, this code is supposed to get a file using an xml_id but receives 'undefined' instead of an actual ID.