You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why doesn't the StoreStock model have a price field? Is it left out intentionally?
Also, I think it would be a good idea to extend Oscar's StockRecord model. The only downside would be that the field name has to be partner even though it'll be referring to a Store. Something like this:
class StoreStock(AbstractStockRecord):
partner = models.ForeignKey('stores.Store', ...)
The text was updated successfully, but these errors were encountered:
Why doesn't the StoreStock model have a price field? Is it left out intentionally?
Yes - this isn't really intended to be a full stock management system for a store. StoreStock is intended just to keep track of whether an item is available at a given store - so that you could, for example, show customers the nearest store where it is available. I think attaching in-store pricing to this is beyond the scope of this package (although you could extend it to do something like that if you wanted to).
Why doesn't the StoreStock model have a price field? Is it left out intentionally?
Also, I think it would be a good idea to extend Oscar's StockRecord model. The only downside would be that the field name has to be partner even though it'll be referring to a Store. Something like this:
The text was updated successfully, but these errors were encountered: