Thank you cedric, I had not considered the product_attribute. I will have another look.
Much appreciated. On Monday, 5 March 2018 14:05:09 UTC, Steven Lightfoot wrote: > Hi > > What is the easiest way of filling a selection field dynamically? I need to > fill it based on a custom product class that has a description and up to 8 > can sizes (different products will have different available can sizes) > > Using a classmethod function does not give me the access to the instance > values so I assume that a function field is the way to go but the only > examples I can see using a function field is to set a value from a predefined > list. > > Should I be going down the route of using One2Many, Many2one fields? > > No idea if this makes sense or not :-) > > If not then I will go forth back to the shadows from whence I came!!!! -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/36766c87-ba45-4240-96a7-cd39d1460df4%40googlegroups.com.