From 6b443b79819d3e56b5f7cef1aeade73cf84da89f Mon Sep 17 00:00:00 2001 From: Joseph Caburnay Date: Tue, 27 Oct 2020 09:24:18 +0000 Subject: [PATCH] [FIX] l10n_in_pos: receipt rendering error when company has no country To reproduce: 1. Start with empty instance with point_of_sale (no demo). 2. Install Indian localization from Invoicing. 3. Start a pos session with that config. 4. Sell a product. 5. Assign a customer to the order. 6. Invoice the order during payment. 7. Validate. [BUG] Empty receipt is shown in the receipt screen. This is because of empty country field of the pos.config's company. We modify the check for country code in the receipt template to account for empty country as fix. closes odoo/odoo#60814 X-original-commit: 86423e2da90e1d023bd616cbc719c80f087a4206 Signed-off-by: pimodoo Signed-off-by: Joseph Caburnay (jcb) --- addons/l10n_in_pos/static/src/xml/pos_receipt.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/l10n_in_pos/static/src/xml/pos_receipt.xml b/addons/l10n_in_pos/static/src/xml/pos_receipt.xml index b406f84278d..ab6e4cb280b 100644 --- a/addons/l10n_in_pos/static/src/xml/pos_receipt.xml +++ b/addons/l10n_in_pos/static/src/xml/pos_receipt.xml @@ -2,7 +2,7 @@ - +
@@ -16,7 +16,7 @@ - +
HSN Code: