Hi
I need to customize the paper format of my documents with dynamic margin as follow:
I created 4 fields in config Module like: margin_top, margin_bottom, margin_left, margin_right, to let user set custom values for margin, now I need to know if the following code is correct to get values in the paper format setting:
Request Order
A5
Portrait
config.margin_top
config.margin_bottom
config.margin_left
config.margin_right
3
80
Thank you for your help ;)
Sorry, this is the paper format settings:
<record id="paperformat_frenchcheck" model="report.paperformat">
<field name="name">Request Order</field>
<field name="default" eval="True"/>
<field name="format">A5</field>
<field name="page_height">80</field>
<field name="page_width">175</field>
<field name="orientation">Portrait</field>
<field name="margin_top">config.margin_top</field>
<field name="margin_bottom">config.margin_bottom</field>
<field name="margin_left">config.margin_left</field>
<field name="margin_right">config.margin_right</field>
<field name="header_line" eval="False"/>
<field name="header_spacing">3</field>
<field name="dpi">80</field>
</record>
Thank you for your help ;)