Prior to this commit get_paperformat function in ir_actions_report.py file was trying to get a paperformat_id of an empty report and as there was none was automatically returning company paperformat_id. After this commit said function will try to get a paperformat_id of the report with specific report_ref value. Task-2980708 (Fix Ticket Reports) Closes odoo/odoo#100199 Closes odoo/odoo#104561 Closes odoo/odoo#100715 closes odoo/odoo#104915 X-original-commit: 78e2c6456d2f9f06d42c18d7b1849d5fad4deb46 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>