Is It Possible to Add Quantities to Assets in FarmOS?

There isn’t a built-in way to directly assign arbitrary quantities to assets in farmOS, although this has been discussed recently (@braught has added some custom fields for land asset dimensions via the FarmData2 module, for instance).

If you are willing to create your own custom module, it’s relatively easy to add custom int or decimal fields to assets. Just be careful to namespace them so they don’t create potential conflicts later. For more info, refer to these documentation pages:

This discussion may also have some related ideas:

Are you thinking about Material assets, specifically?

If so, I wonder if it would actually make more sense to add these kinds of measurements to Material Type taxonomy terms, instead of the assets. Then, you could have multiple Material assets that reference the same Material Type, and therefore share the same values.

Another option might be to simply put your data into the “Description” field of the Material Type terms. Not ideal (hard to extract/use this data elsewhere), but available now without any modifications, and visible to users in farmOS UI. :person_shrugging:

2 Likes