I need to add customer name and tax id on the POS receipt. I'm using Odoo SaaS 15.0.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
Hi,
You can simply create an Odoo custom module with an XML file. The structure of the module will be
module_name
|── static
│ └── src
│ └── xml
│ └──OrderRecept.xml
├── __init__.py
└── __manifest__.py
And you can paste the below code to add the customer to the receipt screen.
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="OrderReceiptScreenExtend" t-inherit="point_of_sale.OrderLinesReceipt" t-inherit-mode="extension" owl="1">
<xpath expr="//t[@t-foreach='receipt.orderlines']" position="before">
<t t-if="receipt.client">
<div>
<span>
Customer :
</span>
<span class="pos-receipt-center-align">
<t t-esc="receipt.client.name"/>
</span>
</div>
<br/>
</t>
</xpath>
</t>
</templates>
And add this XML file to your manifest
'assets': {
'web.assets_qweb': [
'module_name/static/src/xml/file_name.xml',
]
}
After creating the custom module compress this module as a . Zip file.
Then go to the Odoo Apps menu. Enable debug mode, and on the top right side, you can see the import module tab. From there, you can select your module zip file. That's it.
Regards
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
มิ.ย. 23
|
6592 | ||
|
2
มิ.ย. 23
|
2270 | ||
|
1
ธ.ค. 24
|
2292 | ||
|
1
ก.ย. 24
|
1207 | ||
|
0
ส.ค. 24
|
1849 |