On 2016-11-02 15:15, Jon Levy wrote: > I am trying to create a Many2Many field that has a Reference field on one > side. I need a Reference because I have several models that all inherit > from a mix-in (they model similar things and have numerous fields in > common), and the Many2Many needs to be able to point to instances of any of > them. > > I've tried writing the Many2Many as normal, but am getting the error: > "'Reference' object has no attribute 'get_target'". > > I see from https://identi.ca/cedrickrier that "Reference fields for > One2Many and Many2Many" were added to Tryton about 4 years ago. > > Any thoughts on what I may be missing? Thank you, in advance.
Only the origin can be a Reference field, the target must be a Many2One. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- 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/20161102232739.GC5547%40tetsuo.