跳至内容
菜单
此问题已终结
1 回复
3032 查看

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
1269
0
6月 24
1299
1
12月 23
2434
0
3月 22
1902
1
2月 22
6103