Skip to content

Commit

Permalink
[FIX] sale_financial_risk: Don't use deprecated method
Browse files Browse the repository at this point in the history
`account.move` `post()` is deprecated since Odoo 14.0.
  • Loading branch information
Naglis Jonaitis committed Jul 29, 2021
1 parent b4928a8 commit be16597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_financial_risk/tests/test_partner_sale_risk.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_compute_risk_amount(self):
self.assertAlmostEqual(self.partner.risk_invoice_draft, 100.0)
self.assertAlmostEqual(self.partner.risk_sale_order, 0)
invoice = self.sale_order.invoice_ids
invoice.with_context(bypass_risk=True).post()
invoice.with_context(bypass_risk=True).action_post()
self.assertAlmostEqual(self.partner.risk_sale_order, 0)
self.assertAlmostEqual(self.partner.risk_invoice_draft, 0.0)
self.assertAlmostEqual(self.partner.risk_invoice_open, 100.0)
Expand Down

0 comments on commit be16597

Please sign in to comment.