V15. Field use_serial_batch_fields does not exist on Stock Settings when trying to create DN from SO

ERPNext: v15.12.0
Frappe Framework: v15.13.0

Field use_serial_batch_fields does not exist on Stock Settings when trying to create Delivery Note from Sales Order.

Any idea how to fix this?

I think this is the PR that breaks it. Merge pull request #39761 from frappe/mergify/bp/version-15-hotfix/pr… · frappe/erpnext@faf79f4 · GitHub

Fixed it. If you are using Docker, bash into backend and execute bench migrate