From 16ac049e117e01a39fd6ae222fdc8591854a06e4 Mon Sep 17 00:00:00 2001 From: MerlinGuillaume Date: Thu, 2 Jun 2022 09:33:44 +0000 Subject: [PATCH] [FIX] l10n_pk: add default POS account An error is thrown when trying to close a POS session in the Pakistan localization Steps to reproduce: 1. Install POS and Pakistan localization 2. Switch to PK Company 3. Go to Point of Sale > Configuration > Payment Methods and create a new payment method with journal 'Cash' 4. Go to Configuration > Point of Sale and create a new point of sale with sales journal 'Customer Invoices' 5. Open a POS session in the new POS and sell any item 6. Try to close the session, an error occurs telling you to close the session in the back-end 7. Try to close the session, an error occurs and the message is displayed Solution: Add a default POS account in the Pakistan module Problem: The function `_get_receivable_account` didn't find any account so it was not possible to create the account move lines related to the POS session opw-2857669 closes odoo/odoo#93113 X-original-commit: 77e62b56ce57edf621e4c7ed42d6b53a98fc044f Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Guillaume Merlin (megu) --- addons/l10n_pk/data/l10n_pk_chart_data.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/l10n_pk/data/l10n_pk_chart_data.xml b/addons/l10n_pk/data/l10n_pk_chart_data.xml index 6338533ea14..e52fcba442a 100644 --- a/addons/l10n_pk/data/l10n_pk_chart_data.xml +++ b/addons/l10n_pk/data/l10n_pk_chart_data.xml @@ -8,5 +8,6 @@ +