From fcb2f8315a7014f9f62560aac875d69a40a6b53f Mon Sep 17 00:00:00 2001 From: AlexPForgeFlow Date: Mon, 19 Aug 2024 16:25:38 +0200 Subject: [PATCH] [16.0][FIX] rma_account: fiscal_position_id is a computed field In v16, fiscal_position_id is a computed field, so if we set up the field in the refund creation we are overriding the computed value --- rma_account/wizards/rma_refund.py | 1 - 1 file changed, 1 deletion(-) diff --git a/rma_account/wizards/rma_refund.py b/rma_account/wizards/rma_refund.py index 7caebe16..2e2f10c0 100644 --- a/rma_account/wizards/rma_refund.py +++ b/rma_account/wizards/rma_refund.py @@ -157,7 +157,6 @@ class RmaRefund(models.TransientModel): "ref": False, "move_type": "in_refund" if rma_line.type == "supplier" else "out_refund", "journal_id": journal.id, - "fiscal_position_id": rma_line.partner_id.property_account_position_id.id, "state": "draft", "currency_id": self._get_refund_currency(rma_line).id, "date": wizard.date,