In this blog we will explain how to check report orientation in odoo programmatically
First : check if report orientation = Portrait
<t t-if="env['ir.actions.report'].search([('report_name', '=',xmlid)]).paperformat_id.orientation == 'Portrait'">
Second : check if report orientation = Landscape
<t t-if="env['ir.actions.report'].search([('report_name', '=', xmlid)]).paperformat_id.orientation == 'Landscape'">
No comments:
Post a Comment