[MIG] rma_account: Migration to 15.0

This commit is contained in:
Jasmin Solanki
2022-01-07 14:28:00 +05:30
committed by Lois Rilo
parent 6f39b61888
commit 40da8c413b
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "RMA Account",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"license": "LGPL-3",
"category": "RMA",
"summary": "Integrates RMA with Invoice Processing",

View File

@@ -220,7 +220,7 @@ class TestRmaAccount(common.SingleTransactionCase):
{"customer": True, "active_ids": rma.ids, "active_model": "rma.order.line"}
).create({"description": "Test refund"})
make_refund.invoice_refund()
rma.refund_line_ids.move_id.post()
rma.refund_line_ids.move_id.action_post()
rma._compute_refund_count()
self.assertEqual(rma.refund_count, 1)
self.assertEqual(rma.qty_to_refund, 0.0)
@@ -258,7 +258,7 @@ class TestRmaAccount(common.SingleTransactionCase):
{"customer": True, "active_ids": rma.ids, "active_model": "rma.order.line"}
).create({"description": "Test refund"})
make_refund.invoice_refund()
rma.refund_line_ids.move_id.post()
rma.refund_line_ids.move_id.action_post()
rma._compute_refund_count()
self.assertEqual(
self.operation_1.refund_journal_id, rma.refund_line_ids.journal_id