A crash would occur when creating new records as the code did not take into account the possibility of having empty "base" data. closes odoo/odoo#100973 X-original-commit: 497db878fa3f9303ce33035d5737352289c4f97d Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>