From bccdd82be6efd24c38c660baa0d91a1b02c75df6 Mon Sep 17 00:00:00 2001 From: Mateu Griful Date: Tue, 17 Aug 2021 13:10:01 +0200 Subject: [PATCH] [14.0][FIX] rma_account: change account in credit notes --- rma_account/wizards/rma_refund.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rma_account/wizards/rma_refund.py b/rma_account/wizards/rma_refund.py index b4347fc4..cd1af2ec 100644 --- a/rma_account/wizards/rma_refund.py +++ b/rma_account/wizards/rma_refund.py @@ -108,9 +108,9 @@ class RmaRefund(models.TransientModel): def prepare_refund_line(self, item): accounts = item.product.product_tmpl_id._get_product_accounts() if item.line_id.type == "customer": - account = accounts["stock_output"] + account = accounts["income"] else: - account = accounts["stock_input"] + account = accounts["expense"] if not account: raise ValidationError(_("Accounts are not configured for this product."))