[FIX] rma_purchase: tests not fetching refund_line_ids correctly

This commit is contained in:
AaronHForgeFlow
2024-05-08 13:16:13 +02:00
committed by JasminSForgeFlow
parent 48260dac20
commit d77729f400

View File

@@ -80,10 +80,14 @@ class TestRmaStockAccountPurchase(TestRmaStockAccount):
) )
.create({"description": "Test refund"}) .create({"description": "Test refund"})
) )
make_refund.invoice_refund() make_refund_res = make_refund.invoice_refund()
rma_line.refund_line_ids.move_id.action_post() refund_move = (
account_move = rma_line.mapped("refund_line_ids.move_id") self.env["account.move"]
self.check_accounts_used(account_move, credit_account="grni") .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): def test_02_return_and_refund_ref_po(self):
""" """