콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3841 화면

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})
아바타
취소