1.继承并扩展 _render_template
方法
在你的模块中,创建或修改一个Python文件(例如 models/custom_report.py
),并在其中继承和扩展 ir.actions.report
模型的 _render_template
方法:
3. 添加时间戳字段
在你的模型中,添加一个新的字段 print_date
:
_render_template
方法在你的模块中,创建或修改一个Python文件(例如 models/custom_report.py
),并在其中继承和扩展 ir.actions.report
模型的 _render_template
方法:
在你的模型中,添加一个新的字段 print_date
: