[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
This commit is contained in:
AlexPForgeFlow
2024-08-19 16:25:38 +02:00
committed by Aaron ForgeFlow
parent f83a0de31d
commit b88bb516da

View File

@@ -167,7 +167,6 @@ class RmaRefund(models.TransientModel):
"ref": ref,
"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,