@nununo Welcome to the forum and farmOS! From your response to Mike, it feels like you’ve really dug into the existing UI and data-model more thoroughly than the average new farmOS user… nice job!
This would be a great feature! We’ve talked about this before, but I can’t find the tracking issue for it.
If you want to open the feature request, it should probably be a Drupal.org issue under the farmOS project: https://www.drupal.org/project/farm
Also a great feature we should have. We were just talking about this on the most recent monthly call. I don’t see the issue for this one either, but to recap what we found during the call:
The simple version of what you’re talking about would be showing the inventory quantity at the asset level. (Then however you filter the assets, you can see all the inventory quantities on that view - at a per-asset level.)
As Mike linked during the call, inventory field would need to be added to the asset/log views similar to how the group field is added by the group module;
https://github.com/farmOS/farmOS/blob/f01dd2524911c16fe492d45df50651a7a80cd39c/modules/asset/group/farm_group.module#L63
The views field is already defined, just not added to the (any?) views right now;
https://github.com/farmOS/farmOS/blob/3.x/modules/core/inventory/farm_inventory.views.inc
The more complex version would be figuring out how to “roll up” the quantities for separate plantings. That might start to fall into the realm of a custom report… (especially if Onions
is actually many different distinct plant types).