Skip to Content
Menu
This question has been flagged
1 Reply
3692 Views

I've two tables 'affilie'(name) and 'adherant'(name, age, country), And what I want to do is when I create a record in 'Adherant' table with the 3 fields I want it to be created automatically in 'affilie' table. I mean I want the adherant's name field to be copied to the affilie's name field.

How can I do that ...? using the create ORM method..? I've tryed reading the documentation and the memento but I'm a newbie, All I know is developing with python. the OpenObject is still somewhat obscure to me. please I need your help !

Avatar
Discard
Best Answer

Something like:

    self.pool.get('affilie ').create(cr, uid, {'name':your variable})
Avatar
Discard