odoo.addons.base.models.ir_actions_report: Generating PDF on Windows platform require DPI >= 96. Usi

Message: '下载文件url'
Arguments: ('/report/pdf/xx_pdf/23,24',)
2021-05-14 02:42:01,300 6800 INFO  odoo.addons.base.models.ir_actions_report: Generating PDF on Windows platform require DPI >= 96. Using 96 instead. 

odoo.addons.base.models.ir_actions_report: Generating PDF on Windows platform require DPI >= 96. Usi_第1张图片

网上有文说如下设置,但不起作用,出现如下警告,去除后没用了,12有此问题,13不用加

odoo.addons.base.models.ir_actions_report: wkhtmltopdf: b'Exit with code 1 due to network error: UnknownNetworkError\r\n' 

继续查找原因

logging里的问题

def getMessage(self):
    """
    Return the message for this LogRecord.

    Return the message for this LogRecord after merging any user-supplied
    arguments with the message.
    """
    msg = str(self.msg)
    if self.args:
        print(self.args)
        try:
            msg = msg % self.args
        except:
            msg=str(self.msg)
    return msg

修改之,不再提示错误,但

info信息Generating PDF on Windows platform require DPI >= 96. Using 96 instead

 

你可能感兴趣的:(odoo错误分析)