HI ,
Please how can i add cutomer name selected in pos web to the pos receipt ??
THanks ..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
HI ,
Please how can i add cutomer name selected in pos web to the pos receipt ??
THanks ..
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
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.
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.
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 .
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up