Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
8463 Visninger

HI , 

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

THanks ..

Avatar
Kassér
Bedste svar

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.

Avatar
Kassér

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

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

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

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

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

Bedste svar

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.


Avatar
Kassér
Forfatter Bedste svar

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 .

Avatar
Kassér