Odoo Help

Welcome!

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.

0

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

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

HI , 

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

THanks ..

4

Parikshit

--Parikshit--
939
| 6 3 8
Ahmedabad, India
--Parikshit--

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
On 9/15/15, 4:07 AM

Hello,

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 />
</t>
Shop: <t t-esc="widget.pos.shop.name"/><br />

<br />

....

</t>

</template>

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

Jo
on 9/15/15, 5:01 AM

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

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

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

Parikshit
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
on 10/9/15, 2:28 AM
1

Anil R. Kesariya

--Anil R. Kesariya--
4321
| 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.

Rgds,

Anil.


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

Hello everybody , 

i solved it , and this is the link :

https://www.odoo.com/fr_FR/forum/help-1/question/how-to-show-company-logo-and-customer-details-in-pos-ticket-69631

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)

Stats

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