Skip to content
Snippets Groups Projects

Draft: Port to Odoo 16.

Closed Etienne Ferriere requested to merge topic/13.0/MO16-236 into branch/13.0
Compare and Show latest version
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -124,6 +124,10 @@
# Pay the rest.
self._payInvoice(invoice, AMOUNT - 2.0 - 4.0)
invoice.invalidate_model()
import logging
log = logging.getLogger(__name__)
log.critical((invoice.amount_total, invoice.amount_residual, invoice.currency_id.is_zero(invoice.amount_residual)))
self.assertEqual(invoice.paid_amount, AMOUNT)
self.assertEqual(invoice.payment_state, "paid")
Loading