I'm trying to implement a (i think it's not that complex) functionality but I'm stuck at this moment.
I'm using Drupal 7 and I have my own custom module so, if necessary I would code, but for now I was defining the content types.
I want the user to be able to create two types of content:
1. Stock
This content has the following fields:
a. name
b. item
c. quantity
d. value
2. Items (this content is the one that I reference in the Stock content).
This content has the following fields:
a. name
b. attributes (unlimited)
And the last part of the puzzle is the attributes field that initially I wanted to use a Vocabulary.
An example is easier to understand:
I have 2 attributes (vocabularies):
color (with terms yellow, blue and green)
weight (with terms 200, 1000 and 5000)
I then create an Item like this:
name = "Item Nº1"
attribues = [color, weight] (this field is unlimited so I want to reference the 2 vocabularies. From what I see, it's not possible to reference vocabularies, only terms)
Finally, when the user creates a Stock, I want something like this:
name = "my First Stock"
item = "Item Nº1" (referenced)
quantity = 3
value = 34
The goal I need to achieve is that, in this last step of creating a Stock content, I need to choose the terms of the "Item Nº1". In this case it would show up the color and weight and the user would choose one or multiple terms of each one.
I think I'm overthinking this and there is a clean solution so, if someone can help me and suggest a better way to do this, I would really appreciate it.
Thank you
EDIT:
I've managed to create the "Items" content type that as an Entity Reference field where I can choose which vocabularies I can reference:
adding a new Item:
So, at this moment I can add another entity reference to the Stock content type BUT that will only allows the user to choose the Item type.
What I need at this point is to also be able to choose the terms of the vocabularies that Item type has available (as I'm writing this, I'm getting more certain that is not possible without any coding at all)