More than one Attribute sets for Product template

56 views
Skip to first unread message

Artem Braga

unread,
Jan 30, 2017, 5:15:07 AM1/30/17
to tryton
Hello. 

Does Tryton allow to attach more than one attribute sets to a product? Example: Im selling T-shirts in two colors and three possible sizes for each color. Is there a possibility to link "Color Attribute Set" and "Size Attribute Set" to a T-shirt Product and choose required size-color combination for the T-shirt Product Variant? 

Any other suggestions on how to set-up these product variants of 2 colors and 3 colors in Tryton are also welkomed. 

Thank you 
Artem

Sergi Almacellas Abellana

unread,
Jan 30, 2017, 6:40:30 AM1/30/17
to try...@googlegroups.com
El 30/01/17 a les 10:54, 'Artem Braga' via tryton ha escrit:
> Hello.
>
> Does Tryton allow to attach more than one attribute sets to a product?
> Example: Im selling T-shirts in two colors and three possible sizes for
> each color. Is there a possibility to link "Color Attribute Set" and
> "Size Attribute Set" to a T-shirt Product and choose required size-color
> combination for the T-shirt Product Variant?

I won't use a attribute set but a direct fields on the product.template
form. One for defining the available colors (Many2Many) and another for
defining the available sizes (ManyMany).
>
> Any other suggestions on how to set-up these product variants of 2
> colors and 3 colors in Tryton are also welkomed.

Once you have this schema defined, you can create a button that
automatically creates the product.product records for each combination
of the available template and specifies the color and the size attributes.

Using this way allows to search for example, all the products of size L,
or all products with color red.

Hope it helps.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Cédric Krier

unread,
Jan 30, 2017, 7:00:06 AM1/30/17
to try...@googlegroups.com
On 2017-01-30 12:40, Sergi Almacellas Abellana wrote:
> El 30/01/17 a les 10:54, 'Artem Braga' via tryton ha escrit:
> > Hello.
> >
> > Does Tryton allow to attach more than one attribute sets to a product?
> > Example: Im selling T-shirts in two colors and three possible sizes for
> > each color. Is there a possibility to link "Color Attribute Set" and
> > "Size Attribute Set" to a T-shirt Product and choose required size-color
> > combination for the T-shirt Product Variant?
>
> I won't use a attribute set but a direct fields on the product.template
> form. One for defining the available colors (Many2Many) and another for
> defining the available sizes (ManyMany).

I think it is a bad advice. This is the typical usage of product
attributes.

About combination of the sets, it is not possible for now but the same
attribute can be defined in different set.
But indeed there is nothing that will prevent us to change the
attribute_set Many2One of Template into a Many2Many. This could probably
make sense to ease combination.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Artem Braga

unread,
Jan 30, 2017, 11:10:07 AM1/30/17
to tryton
Thank you.

Did I understand correctly, that for now without applying additional changes on the coding level, the solution for T-shirt use case would be: 

1. To create Product.Template: T-Shirt white  and T-Shirt black
2. To create Attribite.Set with size selections: S,M,L
3. To apply this Attribute.Set to Product.Templates as per step 1
4. For each Product.Template create 3 Product.Variants and select Attribute S,M,L for each variant? 

Thank you 
Artem



понедельник, 30 января 2017 г., 14:00:06 UTC+2 пользователь Cédric Krier написал:

Cédric Krier

unread,
Jan 30, 2017, 11:35:06 AM1/30/17
to tryton
On 2017-01-30 07:58, 'Artem Braga' via tryton wrote:
> Thank you.
>
> Did I understand correctly, that for now without applying additional
> changes on the coding level, the solution for T-shirt use case would be:
>
> 1. To create Product.Template: T-Shirt white and T-Shirt black
> 2. To create Attribite.Set with size selections: S,M,L
> 3. To apply this Attribute.Set to Product.Templates as per step 1
> 4. For each Product.Template create 3 Product.Variants and select Attribute
> S,M,L for each variant?

No, you can create an attribute sets which contains attribute for Size and Color.
Then you can create a single template T-Shirt and you fill each
variant with the right attributes.


PS: Do not top-post on this mailing list, see
https://groups.tryton.org/netiquette
Reply all
Reply to author
Forward
0 new messages