def migrate(cr, version): cr.execute(""" UPDATE sf_model_type SET embryo_tolerance = (SELECT id FROM sf_embryo_redundancy LIMIT 1) WHERE embryo_tolerance = 0; """)