Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
8383 Vizualizări

HI , 

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

THanks ..

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează

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.

Cel mai bun răspuns

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.


Imagine profil
Abandonează
Autor Cel mai bun răspuns

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 .

Imagine profil
Abandonează