record id="paperformat_euro_qingjia" model="report.paperformat"
record id可以改为自己定义的新名字。
model=report.paperformat不要改动,就用这个。 除了添加以上新代码,还需要在__mannifest__.xml中添加 'depends': ['base','report'] 注意这一行改为custom <field name="format">custom</field> 格式改为custom后,才可以对后续数据进行更改,其余的格式,比如A4,都是有标准数据的。
欢迎光临 Odoo中文网|Odoo实施培训 (http://www.chinaodoo.net/) | Powered by Discuz! X3.2 |