Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3806 Переглядів

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 !

Аватар
Відмінити
Найкраща відповідь

Something like:

    self.pool.get('affilie ').create(cr, uid, {'name':your variable})
Аватар
Відмінити