Skip to content

Commit

Permalink
[FIX] rma_purchase: tests not fetching refund_line_ids correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHForgeFlow committed May 8, 2024
1 parent a61a973 commit 1708fda
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rma_purchase/tests/test_rma_stock_account_purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,14 @@ def test_01_cost_from_po_move(self):
)
.create({"description": "Test refund"})
)
make_refund.invoice_refund()
rma_line.refund_line_ids.move_id.action_post()
account_move = rma_line.mapped("refund_line_ids.move_id")
self.check_accounts_used(account_move, credit_account="grni")
make_refund_res = make_refund.invoice_refund()
refund_move = (
self.env["account.move"]
.browse(make_refund_res["res_id"])
.line_ids.mapped("move_id")
)
refund_move.action_post()
self.check_accounts_used(refund_move, credit_account="grni")

def test_02_return_and_refund_ref_po(self):
"""
Expand Down

0 comments on commit 1708fda

Please sign in to comment.