The migration to new API dropped `from openerp import tools`, but it was still used. See also 8250762fe8
8250762fe8