Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How can i add cutomer name to pos receipt ???

abdallah ghrir
on 9/14/15, 9:59 AM 1,030 views

HI , 

Please how can i add cutomer name selected in pos web to the pos receipt ??

THanks ..



| 6 3 8
Ahmedabad, India

Working as an OpenERP/Odoo developer both experience in web and addons. you can contact me at:

E-mail : parikshitvaghasiya@gmail.com

Blog : parikshitvaghasiya.blogspot.in

Stackoverflow : http://stackoverflow.com/users/5089106/parikshit-vaghasiya

On 9/15/15, 4:07 AM


For this you 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 />
<t t-if="order.changed.client.name">
customer : <t t-esc="order.changed.client.name"/><br />
Shop: <t t-esc="widget.pos.shop.name"/><br />

<br />




hope this will help you.

I got this error! Odoo Client Error Uncaught Error: QWeb2 - template['PosTicket']: Runtime Error: TypeError: Cannot read property 'name' of undefined http://localhost:8069/web/js/web.assets_common/81dc859:1020

on 9/15/15, 5:01 AM

Now try this i have change the code. this will help you.

on 9/15/15, 5:42 AM

don't forget to upvote my answer ..Thank you

on 9/15/15, 10:19 AM

If no customer is selected for the order, returns an error...

Pascal Tremblay
on 10/8/15, 6:23 PM

i had update the answer. now you can solve this.

on 10/9/15, 2:28 AM

Anil R. Kesariya

--Anil R. Kesariya--
| 6 5 8
Gandhinagar, India
--Anil R. Kesariya--
ERP Consultant

Key Skill
Technical & Functional Expert
Anil R. Kesariya
On 9/15/15, 1:57 AM

Hi abdallah ghrir,

You can see in the top Center area. You will find Unknown Customer.

Click on that button and set no of customer you wanted to set from there.

Attached screen shot for more info.

Hope this will help you.



abdallah ghrir
On 9/15/15, 4:21 AM

Hello everybody , 

i solved it , and this is the link :


Thanks .

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 9/14/15, 9:59 AM
Seen: 1030 times
Last updated: 10/9/15, 2:28 AM