Files
odoo_source/addons/l10n_pk/data/l10n_pk_chart_data.xml
T
MerlinGuillaume 16ac049e11 [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) <nle@odoo.com>
Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
2022-06-08 16:51:02 +02:00

14 lines
716 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Account Chart Template -->
<record id="l10n_pk_chart_template" model="account.chart.template">
<field name="name">Pakistan - Chart of Accounts</field>
<field name="property_account_receivable_id" ref="l10n_pk_1121001" />
<field name="property_account_payable_id" ref="l10n_pk_2221001" />
<field name="property_account_income_categ_id" ref="l10n_pk_3111001" />
<field name="property_account_expense_categ_id" ref="l10n_pk_4111001" />
<field name="account_journal_suspense_account_id" ref="l10n_pk_2226000"/>
<field name="default_pos_receivable_account_id" ref="l10n_pk_1121001"/>
</record>
</odoo>