Implemented a workaround for the OpenERP7 bug "Unknown database
identifier '0'".