Odoo Help


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

abdallah ghrir
on 9/14/15, 9:59 AM 2,335 views

HI , 

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

THanks ..


Parikshit Vaghasiya

--Parikshit Vaghasiya--
| 6 3 8
--Parikshit Vaghasiya--

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

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.

Parikshit Vaghasiya
on 9/15/15, 5:42 AM

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

Parikshit Vaghasiya
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.

Parikshit Vaghasiya
on 10/9/15, 2:28 AM

Anil R. Kesariya

--Anil R. Kesariya--
| 7 6 8
Rajkot, India
--Anil R. Kesariya--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.

Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66

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 .

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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