Skip to content

Commit

Permalink
[FIX] Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcardoso21 committed Oct 15, 2020
1 parent b308731 commit 6a41c6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions l10n_br_account_payment_order/demo/account_invoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<field name="type">out_invoice</field>
<field name="user_id" ref="base.user_demo"/>
<field name="payment_mode_id" ref="payment_mode_cobranca_bradesco400"/>
<field name="journal_id" search="[('type', '=', 'bank')]"/>
</record>

<record id="demo_invoice_line_original" model="account.invoice.line">
Expand Down
7 changes: 4 additions & 3 deletions l10n_br_account_payment_order/tests/test_payment_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ def test_cancel_payment_order(self):
for line in payment_order.payment_line_ids:
line.percent_interest = 1.5
test_amount_interest = line.amount_interest
self.assertEquals(
test_amount_interest, 10.5,
"Error with compute field amount_interest.")
if line.amount_currency == 700.0:
self.assertEquals(
test_amount_interest, 10.5,
"Error with compute field amount_interest.")

# Open payment order
payment_order.draft2open()
Expand Down

0 comments on commit 6a41c6b

Please sign in to comment.