Thank you hda, GEM
Thank you fabien, I've corrected. the typos in my previous posts.

The point here is that the first example won't work.

I've checked file res_user.py  in base module , and find that the object 
res.users and res.groups is doing the same way I showed in the example2:

class groups2(osv.osv): ##FIXME: Is there a reason to inherit 
this object ?
    _inherit = 'res.groups'
    _columns = {
        'users': fields.many2many('res.users', 
'res_groups_users_rel', 'gid', 'uid', 'Users'),
    }
groups2()

while in the same file, res.users and res.roles is doing the way I showed in 
the example1.
But, I believe it works because the res_users and res_roles table was already 
created by 'base.sql' during the server's first-time initialization.

hda, do you mean that  current openERP ORM mechanism only support the 
example2's way to create many2many relationship tables.




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=37840#37840

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to