Using the debug mode on carrier and validate a picking with a carrier will block and run until request's timeout. It happens because log_xml create a new cursor and a new environement. So it should be flush before the ir.logging creation since it's in another env. closes odoo/odoo#40561 X-original-commit: cdc09f5b70ad200014ac38f314bf1ec53cd5b8ca Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>