Thank you for answering my post. 
I actually knew how the error occurred.  The thing frustrates me most is that I 
have to take two moves to complete the setup of many2many  relationship between 
two tables in the openerp ORM.  

for example: 

this can not (error):
class book(osv.osv): 
    _name = "book"
    _columns = {
           'author': fields.many2many 
('author', 'book_author_rel','books_id','author_id', 'Author'),
           'pages': ...
           'name': ...
    }
book()

class author(osv.osv): 
   _name = "author"
   _columns = {
          'book': fields.many2many('book', 
'book_author_rel','author_id','book_id', 'Book'),
          'name': ...
    }
author() 

this can but not nice:

this can not:
class book(osv.osv):
    _name = "book"
    _columns = {
           'pages': ...,
           'name': ...
    }
book()

class author(osv.osv): 
   _name = "author"
  _columns = {
          'book': fields.many2many('book', 
'book_author_rel','author_id','book_id', 'Book'),
          'name': ...
    }
author() 

class book1(osv.osv): 
  _name = "book"
  _inherit = "book"
  _columns = {
           'author': fields.many2many 
('author', 'book_author_rel','books_id','author_id', 'Author'),
    }
book1()

except for the above stated, any better way??




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

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

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


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

Reply via email to