thelia/thelia — pull request #702 by Alban-io (2014-09-11 11:07:28+00:00)
Title: fix modification product quantity when status order is cancel

Add product sale elements id in order product without foreign key constraint to protect order integrity if product will be deleted.
Add modification product quantity when an order is changed : from one status into canceled (increases quantities) or conversely (decreases quantities).