bzr revid: fp@tinyerp.com-20081028233320-c8k4xixc543w8te5
This commit is contained in:
Fabien Pinckaers 2008-10-29 00:33:20 +01:00
parent 07fad13738
commit 13f80770c9
1 changed files with 3 additions and 0 deletions

View File

@ -478,6 +478,9 @@ class many2many(_column):
def __init__(self, obj, rel, id1, id2, string='unknown', limit=None, **args):
_column.__init__(self, string=string, **args)
self._obj = obj
if '.' in rel:
raise Exception(_('The second argument of the many2many field %s must be a SQL table !'\
'You used %s, which is not a valid SQL table name.')% (string,rel))
self._rel = rel
self._id1 = id1
self._id2 = id2