POS: Product availability panel stopped working (error)

How to fix CPOS ‘Product availability’ panel after binary retail update.