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

I am archiving a One2many field via code but it still shows until I manually refresh the screen.

Can my code trigger this refresh?

아바타
취소
베스트 답변

Just return a client reload action at the end of your code:

def your_method(self):

​# your code ends with
  self.action_archive()

# line to add
  return { 'type': 'ir.actions.client', 'tag': 'reload' }
아바타
취소
관련 게시물 답글 화면 활동
2
12월 22
12348
1
5월 22
3579
1
2월 22
2459
0
4월 20
3682
7
1월 24
154391