See PR https://github.com/Dolibarr/dolibarr/pull/1218