Modified onchange_product_id in purchase.py