erp5: Fix undefined variable error.