fixed two nasty regressions that happenned during the recent refactoring
proudly show we are passing a full test suite bootstraping our own OpenERP server on Travis, yeah...