From 82dc0cb7b91ae59beae7e1c865b670afc5958b31 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 30 Mar 2020 11:46:27 +0000 Subject: [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,... ) --- addons/snailmail_account/tests/test_pingen_send.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/snailmail_account') diff --git a/addons/snailmail_account/tests/test_pingen_send.py b/addons/snailmail_account/tests/test_pingen_send.py index 71a1b4b89d3..e3cb29ebbd7 100644 --- a/addons/snailmail_account/tests/test_pingen_send.py +++ b/addons/snailmail_account/tests/test_pingen_send.py @@ -48,7 +48,7 @@ class TestPingenSend(HttpCase): })], }) - invoice.post() + invoice.action_post() return invoice -- cgit v1.2.3