Hello friends, I came to this forum to request some help about odoo v16.0, specifically in the point of sale module; I need to include in the ticket the name of the client and the reference of each product sold, I appreciate any information or path that you can help me take to achieve it, thank you very much
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi,
To include the client's name and the reference of each product sold on the receipt in the Odoo v16 Point of Sale (POS) module, you need to customize the receipt template by inheriting the OrderReceipt template. Below is an example of how you can achieve this:
<templates id="template" xml:space="preserve">
<t t-name="OrderReceipt" t-inherit="point_of_sale.
<xpath expr="//t[@t-esc='receipt.
<t t-if="receipt.partner">
<div>
Customer: <t t-esc="receipt.partner.name"/>
</div>
</t>
</xpath>
</t>
</templates>
To include the product reference we need to inherit the OrderLineReceipt template.
<t t-name="OrderLinesReceipt" t-inherit="point_of_sale.
<div>
<t t-if="orderline.product.
<t t-esc="orderline.product.
</t>
</div>
</t> </xpath> </t></t>
For more information about customizing pos Customer Receipts you can check this blogs:
Customize PoS Receipts in the Odoo 16
Hope it helps
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 10 23
|
2892 | ||
|
1
thg 5 24
|
1670 | ||
|
2
thg 7 23
|
9570 | ||
|
0
thg 6 23
|
1473 | ||
|
0
thg 12 22
|
2860 |