POS receipt - Template Format

POS Sample

Probuse Admin

 

How to set POS receipt Format

Odoo 9

1).

POS receipt format:-

Create a new XML file in copy below code.

<?xml version="1.0" encoding="utf-8"?>

<openerp>

<data>

<record id="paperformat_posreceipt" model="report.paperformat">

<field name="name">Point Of Sale Receipt</field>

<field name="default" eval="True"/>

<field name="format">custom</field>

<field name="page_height">150</field>

<field name="page_width">60</field>

<field name="orientation">Portrait</field>

<field name="margin_top">3</field>

<field name="margin_bottom">3</field>

<field name="margin_left">3</field>

<field name="margin_right">3</field>

<field name="header_line" eval="False" />

<field name="header_spacing">3</field>

<field name="dpi">130</field>

</record>

</data>

</openerp>


2).

How to access a code in your template.

Insert a paperformat in your template.

<report

id="sale_summary_report"

model="slice_sale.report"

string="Sale Summary Report"

name="slice_sale_summary_report.sale_summary_report_view"

file="slice_sale_summary_report.sale_summary_report_view"

report_type="qweb-pdf"

paperformat="point_of_sale.paperformat_posreceipt"

/>