You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
259 B

# coding: utf-8
def migrate(cr, version):
"""Set the new supervisor_id field if this one is empty."""
cr.execute(
"""
UPDATE purchase_order
SET supervisor_id = create_uid
WHERE supervisor_id IS NULL
"""
)