Skip to content
Snippets Groups Projects
Commit 4244331a authored by hupo-odoo's avatar hupo-odoo
Browse files

[FIX] account: autopost draft entries

The following commit https://github.com/odoo/odoo/commit/0015662d166f5e07bcbd6c5e9e14f8837ffa58a3

 was incorrectly done because the records are already limited to a 100 in the search query. We therefore remove redundant loop.

We also moved up all possible UserError in the _post() method before the soft computation such that if any UserError is raised (with the autopost cron for example), the soft computation will not be executed.

task-3482939

closes odoo/odoo#133485

Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent a42a19e4
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment