I think that in 5.0, trunk, you cannot place sql code in domain expressions like that.
Interestingly, I have been experimenting with this issue. Under the condition that we are using about postgres, there is an attempt to enhance the syntax of expressions. See branch "pg84" at http://git.hellug.gr/?p=xrg/openobject-server;a=shortlog;h=refs/heads/pg84 There, I think we can have expressions like [ ('field_id', 'in', [('sub_table_fld', '=', value )] )] however, 3-rd tables (not the ones that o2m reference) may not be used in such expressions yet. It would be challenging, though. -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=50573#50573 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
