摘要: 依赖包:pip install reportlab Odoo 中附件的下载会经过 ir.http 的 def binary_content() 方法获取附件内容等必要信息, 所以我们需要继承 ir.http 模型并重写 binary_content 方法,对 PDF 类型的附件添加水印, 在 [mo 阅读全文
posted @ 2021-05-10 23:46 何双新 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 一、继承userlog,添加字段 # -*- coding: utf-8 -*- from odoo import models, fields, api from odoo.http import request class ResUsersLog(models.Model): _inherit 阅读全文
posted @ 2021-05-10 07:16 何双新 阅读(487) 评论(0) 推荐(0) 编辑