boxwise / boxwise_wms

1 stars 4 forks source link

Fix delete_if_exists #90

Closed HaGuesto closed 5 years ago

HaGuesto commented 5 years ago

Problem

When a db loads demo data, the stock module creates products which are connected to product.product_category_1. If we then want to install boxwise_wms, it throws an error.

Solution

This is a work around which checks whe it tries to delete the category if there is already some connected data.