Skip to content

Commit

Permalink
[MIG][15.0] account_cash_discount_write_off:Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bizzappdev committed Sep 20, 2024
1 parent 16370fa commit 3adc158
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion account_cash_discount_write_off/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"summary": """
Create an automatic writeoff for payment with discount on the payment
order confirmation""",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-payment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,13 @@ def test_cash_discount_with_refund(self):

move_reversal = self.AccountMoveReversal.with_context(
active_model=invoice._name, active_ids=invoice.ids
).create({"reason": "no reason", "refund_method": "refund"})
).create(
{
"reason": "no reason",
"refund_method": "refund",
"journal_id": self.purchase_journal.id,
}
)
reversal = move_reversal.reverse_moves()

refund = self.env["account.move"].browse(reversal["res_id"])
Expand Down

0 comments on commit 3adc158

Please sign in to comment.