Many2One sql_format should check model instance
Many2One.sql_format convert the value into int but in case it is a Model instance, it should test that it is an instance of target. This will detect programming error that are not always detected by scenario because id's could be the same.