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

I am getting an error  "Uncaught Javascript Error > this.displayNotification is not a function" 


--if(date_end "less than" date_start){---                     

----this.displayNotification({
----type: 'warning',
----title: _t('Success'),
----message: "Invalid",
----sticky: true

--}
--}


아바타
취소
베스트 답변

Hi,

Please try with the following 

notification(){

    this.env.services['action'].doAction({

                'type': 'ir.actions.client',

                'tag': 'display_notification',

                'params': {

                    'title': 'Invalid fields:',

                    'message': "Project",

                    'type': 'danger',

                    'sticky': false,

                }

            });

}

Hope it helps

아바타
취소
베스트 답변

Hi junaid,

can you try this way,

this.widget.displayNotification({
message: this.env._t("Session expired... Please refresh and try again."),
sticky: true,
});

Thanks.

아바타
취소