Skip to Content
Menu
This question has been flagged
1008 Views

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 ;)

Avatar
Discard
Author

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 ;)

Related Posts Replies Views Activity
2
Dec 24
3122
1
Dec 24
348
4
Nov 24
1364
1
Sep 24
1134
1
Sep 24
1200