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

Hello. I am very new to odoo13 and i want to know how can i write log file for ticketing in event. In default log, it contains for event that show under ticketing. The log file can check the process of event but it didn't contain about ticketing flow. I search about a lot but can't see answer and if that type of question was asked, please guide me to. Thanks. 

아바타
취소
베스트 답변

You can add your own logs in the source code like this:

import logging

_logger = logging.getLogger(__name__)

class AccountInvoice(models.Model):
_inherit = 'account.invoice'

    def some_method_you_use(self):
        ... your code here
        _logger.info("Log your message here")
        ... your code here



아바타
취소
관련 게시물 답글 화면 활동
0
10월 24
1270
0
6월 24
1299
1
12월 23
2434
0
3월 22
1902
1
2월 22
6103