diff --git a/addons/l10n_gcc_pos/static/src/js/OrderReceipt.js b/addons/l10n_gcc_pos/static/src/js/OrderReceipt.js index bb2376f3839..e7fe99acba3 100644 --- a/addons/l10n_gcc_pos/static/src/js/OrderReceipt.js +++ b/addons/l10n_gcc_pos/static/src/js/OrderReceipt.js @@ -10,7 +10,8 @@ odoo.define('l10n_gcc_pos.OrderReceipt', function (require) { get receiptEnv() { let receipt_render_env = super.receiptEnv; let receipt = receipt_render_env.receipt; - receipt.is_gcc_country = ['SA', 'AE', 'BH', 'OM', 'QA', 'KW'].includes(receipt_render_env.order.pos.company.country.code); + const country = receipt_render_env.order.pos.company.country; + receipt.is_gcc_country = ['SA', 'AE', 'BH', 'OM', 'QA', 'KW'].includes(country && country.code); return receipt_render_env; } }