This replaces and follow up what was discussed on https://lab.nexedi.com/nexedi/erp5/-/merge_requests/1898