コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3844 ビュー

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})
アバター
破棄