Hi, is there a way to use a fields.Reference in a domain clause of a fields.Many2One? E.g.
class Product(ModelSQL, ModelView): _name = "product.product" picture_attachment = fields.Many2One('ir.attachment', 'Picture Attachment', domain=[ ('type', '=', 'data'), ('resource', '=', '%s,%s' % (_name, Eval('active_id'))), ], help='Picture attachment') Product() The clause ('resource', '=', '%s,%s' % (_name, Eval('active_id'))) does not find the expected resource(s) of model 'product.product' with active_id. Ideas? Tia and regards Udo Spallek -- _____________________________ virtual things Preisler & Spallek GbR München - Aachen Windeckstr. 77 81375 München Tel: +49 (89) 710 481 55 Fax: +49 (89) 710 481 56 i...@virtual-things.biz http://www.virtual-things.biz -- tryton-dev@googlegroups.com mailing list