Although you are permitted to add multiple groups to an asset, more than one group is not stored in the asset.

It would be very useful if an asset can be in multiple groups.

We have a number of animals, and need to keep track of which group each animal is in. The groups are pretty diverse, such as: feed type, 4-H leasing, working steer, breeder, auction, ...

Comments

BruceDawson created an issue. See original summary.

m.stenta’s picture

Good idea - and very simple to do. I'll whip up a commit... and a howto for you to use until the next release...

m.stenta’s picture

Project: farmOS » Farm Livestock
Version: 7.x-1.0-beta12 » 7.x-1.x-dev
Component: Code » User interface

This change will be made in the Farm Livestock module.

  • m.stenta committed 59f4882 on 7.x-1.x
    Issue #2801949: Multiple Asset Groups
    
m.stenta’s picture

Status: Active » Closed (fixed)

Alright! This is done in 7.x-1.x branch of the farm_livestock module. It will be included in the next farmOS release.

In the meantime, you can easily enable this on your own site, and when you upgrade it will flow together smoothly. Here's how:

  1. Make sure the "Field UI" module is turned on (module included with Drupal core).
  2. Go to /admin/config/farm/asset-types/manage/animal/fields/field_farm_animal_group
  3. At the bottom, the second to last field is "Number of values" - change this to "Unlimited"
  4. Click "Save settings"

Then you will be able to specify multiple groups when you are editing animals, and all of them will be saved.

BruceDawson’s picture

Great! It works. Thanks! Makes it a lot easier to find the animals in a particular group now!

m.stenta’s picture

Project: Farm Livestock » farmOS

Moving old issues to the canonical farmOS project for easier searching. Apologies for email spam if anyone is following these. :-)