diff --git a/addons/hr_expense/static/src/js/expense_qr_code_action.js b/addons/hr_expense/static/src/js/expense_qr_code_action.js index 5de326d04b5..00ceb37e2c2 100644 --- a/addons/hr_expense/static/src/js/expense_qr_code_action.js +++ b/addons/hr_expense/static/src/js/expense_qr_code_action.js @@ -11,7 +11,7 @@ const QRModalAction = AbstractAction.extend({ init: function(parent, action){ this._super.apply(this, arguments); - this.url = _.str.sprintf("/report/barcode/?type=QR&value=%s&width=256&height=256&humanreadable=1", action.params.url); + this.url = _.str.sprintf("/report/barcode/?barcode_type=QR&value=%s&width=256&height=256&humanreadable=1", action.params.url); }, }); diff --git a/addons/hr_timesheet/static/src/js/qr_code_action.js b/addons/hr_timesheet/static/src/js/qr_code_action.js index 15419a1f666..35559139a7a 100644 --- a/addons/hr_timesheet/static/src/js/qr_code_action.js +++ b/addons/hr_timesheet/static/src/js/qr_code_action.js @@ -11,7 +11,7 @@ const QRModalAction = AbstractAction.extend({ init: function(parent, action){ this._super.apply(this, arguments); - this.url = _.str.sprintf("/report/barcode/?type=QR&value=%s&width=256&height=256&humanreadable=1", action.params.url); + this.url = _.str.sprintf("/report/barcode/?barcode_type=QR&value=%s&width=256&height=256&humanreadable=1", action.params.url); }, }); diff --git a/addons/hr_timesheet/static/src/js/timesheet_config_form_view.js b/addons/hr_timesheet/static/src/js/timesheet_config_form_view.js index 16229773037..dfa49acdaa1 100644 --- a/addons/hr_timesheet/static/src/js/timesheet_config_form_view.js +++ b/addons/hr_timesheet/static/src/js/timesheet_config_form_view.js @@ -15,7 +15,7 @@ odoo.define('hr_timesheet.res.config.form', function (require) { * @override */ init: function (parent, url) { - this.url = _.str.sprintf("/report/barcode/?type=QR&value=%s&width=256&height=256&humanreadable=1", url); + this.url = _.str.sprintf("/report/barcode/?barcode_type=QR&value=%s&width=256&height=256&humanreadable=1", url); this._super(parent, { title: _t('Download our App'), buttons: [{ diff --git a/addons/l10n_sa_invoice/views/report_invoice.xml b/addons/l10n_sa_invoice/views/report_invoice.xml index 9e87eec6393..d4c2185543a 100644 --- a/addons/l10n_sa_invoice/views/report_invoice.xml +++ b/addons/l10n_sa_invoice/views/report_invoice.xml @@ -24,7 +24,7 @@ + t-att-src="'/report/barcode/?barcode_type=%s&value=%s&width=%s&height=%s'%('QR', o.l10n_sa_qr_code_str, 150, 150)"/>