diff options
| author | william <wan@odoo.com> | 2020-03-30 11:46:27 +0000 |
|---|---|---|
| committer | william <wan@odoo.com> | 2020-08-05 11:57:10 +0000 |
| commit | 82dc0cb7b91ae59beae7e1c865b670afc5958b31 (patch) | |
| tree | 949b949b249cdac265310798d5abb82675a1741b /addons/l10n_fi/tests/test_get_reference.py | |
| parent | 276ba8e90c87f8294286f915508766761a58d1e2 (diff) | |
[IMP] account: soft post entries in the future
Add an easy way to not post the entries in the future when calling
post() on it, but rather set it to be auto-posted at accounting date.
This is useful when we are creating a lot of entries in batch and some
might be in the future, some in the past, and we don't want to separate
that in two batch every time. (asset, accrual, transfer,... )
Diffstat (limited to 'addons/l10n_fi/tests/test_get_reference.py')
| -rw-r--r-- | addons/l10n_fi/tests/test_get_reference.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/l10n_fi/tests/test_get_reference.py b/addons/l10n_fi/tests/test_get_reference.py index 3268e1d49b0..7476898097d 100644 --- a/addons/l10n_fi/tests/test_get_reference.py +++ b/addons/l10n_fi/tests/test_get_reference.py @@ -15,25 +15,25 @@ class InvoiceGetReferenceTest(AccountTestInvoicingCommon): def test_get_reference_finnish_invoice(self): self.assertFalse(self.invoice.payment_reference) self.invoice.journal_id.invoice_reference_model = 'fi' - self.invoice.post() + self.invoice.action_post() self.assertTrue(self.invoice.payment_reference) def test_get_reference_finnish_partner(self): self.assertFalse(self.invoice.payment_reference) self.invoice.journal_id.invoice_reference_type = 'partner' self.invoice.journal_id.invoice_reference_model = 'fi' - self.invoice.post() + self.invoice.action_post() self.assertTrue(self.invoice.payment_reference) def test_get_reference_finnish_rf_invoice(self): self.assertFalse(self.invoice.payment_reference) self.invoice.journal_id.invoice_reference_model = 'fi_rf' - self.invoice.post() + self.invoice.action_post() self.assertTrue(self.invoice.payment_reference) def test_get_reference_finnish_rf_partner(self): self.assertFalse(self.invoice.payment_reference) self.invoice.journal_id.invoice_reference_type = 'partner' self.invoice.journal_id.invoice_reference_model = 'fi_rf' - self.invoice.post() + self.invoice.action_post() self.assertTrue(self.invoice.payment_reference) |
