Friday, 18 September 2015

How can we add cutomer name to pos receipt in odoo? | OpenERP

For this we have to extend template of "PosTicket" like this :

<templates id="pos_custom_extended" inherit_id="point_of_sale.template" xml:space="preserve">

<t t-name="PosTicket">

....

<br />

<t t-esc="widget.pos.company.name"/><br />

Phone: <t t-esc="widget.pos.company.phone || ''"/><br />

User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><br />

customer : <t t-esc="order.changed.client.name"/><br />

Shop: <t t-esc="widget.pos.shop.name"/><br />

<br />

....

</t>

</template>