Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion product_label_image/reports/product_template_report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@
</t>
</template>

<record id="paperformat_label_image_4x6" model="report.paperformat">
<field name="name">100x150 Thermal Label</field>
<field name="format">custom</field>
<field name="page_height">150</field>
<field name="page_width">100</field>
<field name="orientation">Landscape</field>
<field name="margin_top">0</field>
<field name="margin_bottom">0</field>
<field name="margin_left">0</field>
<field name="margin_right">0</field>
<field name="disable_shrinking" eval="True" />
<field name="dpi">96</field>
</record>

<record id="report_product_label_image_4x6" model="ir.actions.report">
<field name="name">Product Label (PDF)</field>
<field name="model">product.template</field>
Expand All @@ -69,7 +83,10 @@
<field
name="report_file"
>product_label_image.producttemplatelabel_image_4x6</field>
<field name="paperformat_id" ref="product.paperformat_label_sheet" />
<field
name="paperformat_id"
ref="product_label_image.paperformat_label_image_4x6"
/>
<field name="print_report_name">'Products Labels - %s' % (object.name)</field>
<field name="binding_type">report</field>
</record>
Expand Down
Loading