inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.22k stars 760 forks source link

Keep a complete history of records #377

Closed SchrodingersGat closed 3 years ago

SchrodingersGat commented 5 years ago

Use django-simple-history

https://django-simple-history.readthedocs.io/en/2.7.2/

fenugrec commented 3 years ago

Does this refer to, for example, keeping track of stock operations ? I have in mind something like one entry "[date] : add/removed [qty] for [reason/project]" for every operation , similar to what partkeepr does.

SchrodingersGat commented 3 years ago

Exactly right. Currently InvenTree does do this but in a very naive way. Migrating to using django-simple-history would provide a much richer experience (although it will be a headache to achieve!)

eeintech commented 3 years ago

@SchrodingersGat Where do you stand on history tracking for all InvenTree instances? Is that still on your wishlist?

I'm just curious to know what forces would drive the use of history tracking package, because other than stock (which is tracked already) I don't clearly see a path forward with this.

SchrodingersGat commented 3 years ago

Not really sure on where I want to see this going, currently. It is a very complex problem. Even if you have a complete history, how do you "unwind" without breaking some other data?

This one will probably have to stay on the backburner for a while

eeintech commented 3 years ago

The more wait, the more complex it gets 😃 But yes I agree with you, I don't have much experience with it either besides my tiny attempt to create history for parts. This could be a full time project for a while.