Skip to content

Commit

Permalink
[16.0][FIX] rma_account: fiscal_position_id is a computed field
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AlexPForgeFlow committed Aug 19, 2024
1 parent f83a0de commit 186547a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rma_account/wizards/rma_refund.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ def _prepare_refund(self, wizard, rma_line):
"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,
Expand Down

0 comments on commit 186547a

Please sign in to comment.