From f8ce1c0457a00a5884b440ae6d2eefb03f56446f Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Tue, 11 Jan 2022 14:13:04 +0000 Subject: [PATCH] [FIX] account: Fix wrong st line account in pos box If money is withdrawn, we can't tell if it's a transfert to the bank account or if some money has been withdrawn to pay an invoice or some expense. We then assign the suspense account in order for the accountant to go through the reconciliation widget process in order to dispatch/assign the amount to the right account(s). This allows all the accounting process to go smoothly without any needs for the accountant to manually create a miscellaneous entry. Introduced by: closes odoo/odoo#82616 Pr: https://github.com/odoo/odoo/pull/82123 Commit: https://github.com/odoo/odoo/commit/336656e0e9677ccb2f43935b6f267fa83ed153df X-original-commit: 04396e0627fd36d28b047e0e122ffb55a3a12ebc Signed-off-by: Florian Gilbert --- addons/account/wizard/pos_box.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account/wizard/pos_box.py b/addons/account/wizard/pos_box.py index 9bebcee3309..154ea01740e 100644 --- a/addons/account/wizard/pos_box.py +++ b/addons/account/wizard/pos_box.py @@ -33,7 +33,6 @@ class CashBox(models.TransientModel): if record.state == 'confirm': raise UserError(_("You cannot put/take money in/out for a bank statement which is closed.")) values = box._calculate_values_for_statement_line(record) - values["counterpart_account_id"] = record.journal_id.company_id.transfer_account_id.id self.env['account.bank.statement.line'].sudo().create(values)