Tuesday, July 25, 2023

check report orientation in odoo

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'">

Odoo Invoice Qr code issues

There are two main issues must of us facing with the QR code in Odoo invoice & these issues are 1/ QR code displayed as broken image w...