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

Hi. I am trying to autosave a record after saving a previous record. Here is my scenario:

I have a tournament with an integer value of rounds. (e.g. I input a value of 4 in the rounds_field). Now after saving/creating the tournament, I should save data in my 'rounds' table/model depending on the value of rounds from the 'tournament'. In this case, I want to save values in my rounds class:

round_1 tour_id (FK)

round_2 tour_id (FK)

round_3 tour_id (FK)

round_4 tour_id (FK)

Basically I have 2 classes - 'tournament', 'rounds'. Due to the syntax of odoo, I don't know how to achieve this so any help would be much appreciated. Thanks!     

아바타
취소

To achieve your scenario use should override create method, hope this will resolve your issue. https://goo.gl/4BkizH

베스트 답변

I suggest you use the base_automation module.  Create base.action.rule with "When to Run" set as "On Update". 


아바타
취소
관련 게시물 답글 화면 활동
1
5월 16
5140
4
7월 20
8609
1
12월 19
6650
1
2월 18
5543
3
1월 18
6568