Created
June 30, 2022 08:27
-
-
Save sehrishnaz/f8a3e6ca753f6d5a8e3fd92e90835280 to your computer and use it in GitHub Desktop.
How to put URL inside QR Code in odoo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base_url = self.env['ir.config_parameter'].get_param('web.base.url') | |
if not 'localhost' in base_url: | |
if 'http://' in base_url: | |
base_url = base_url.replace('http://', 'https://') | |
base_url = base_url + '/web#id=' + str(self.id) + '&model=your.model.goes.here&view_type=form&cids=' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to put URL inside QR Code in odoo