Welcome to Plata 1.1!
The order status “confirmed” was confusingly named; what it really meant all the time is that the order can be considered paid. Whether an order is confirmed or not depends on the shop owner’s definitions.
Because of this the existing Order.CONFIRMED status has been renamed to Order.PAID, Order.CONFIRMED has been added as a new order status coming after Order.PAID. Plata only knows about Order.PAID and never changes an order to COMPLETED itself.
To update your installations to Plata v1.1, you’ll have to make the following changes:
The stock transaction app has been converted to south too now. The initial migration should be applied with --fake if you are already using stock tracking:
./manage.py migrate stock 0001 --fake
Stock transactions have been made more useful on their own; if possible, the name, sku and line item price fields are filled in automatically. The south schemamigration for adding all additional fields is provided.
Previously, stock transactions of type PAYMENT_PROCESS_RESERVATION influenced the items_in_stock field on products even after the reservation period was over. This happened because the stock is not automatically recalculated when 15 minutes have passed. Plata is smarter now and only takes the payment process reservation stock transactions into account when validating the order (respectively the cart) during the checkout process. A few stock transaction manager methods have been removed during the refactoring because their functionality does not match Plata’s own behavior anymore:
If you need their functionality, you should have a closer look at StockTransaction.objects.items_in_stock first (especially the new argument, include_reservations).
The order model has a new field language_code. When the order is created in shop.order_from_request(request, create=True) this field is filled with the current language for your convenience. The PDF generation code and the e-mail notification handlers automatically activate the language set on the order; if you provide your own signal handlers and/or PDF generation methods, you have to do this yourself.
The south schemamigration for this change is provided.