mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] rma_purchase: tests not fetching refund_line_ids correctly
This commit is contained in:
committed by
JasminSForgeFlow
parent
48260dac20
commit
d77729f400
@@ -80,10 +80,14 @@ class TestRmaStockAccountPurchase(TestRmaStockAccount):
|
||||
)
|
||||
.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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user