Files
test/sf_manufacturing/migrations/1.1/pre-migrate.py
2024-11-19 08:59:52 +08:00

7 lines
196 B
Python

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;
""")