Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4538 มุมมอง

Hi,

How we can add another field of product on POS receipt print out? Actually need to add a field on product with translated value of product name and need to show that under product name on receipt report.

thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi shyam,

Sorry i am new to odoo might need more details like js load etc. Thanls

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

For this you need to inherit the PosTicket template and place your code inside the order line. Here is the example how you can do it.

Suppose the field name is  'new_field_name', then 

<t t-extend="PosTicket" >

    <t t-jquery=".receipt-orderlines tr td:nth-child(1)" t-operation="append"> 

       <t t-esc="orderline.get_product().new_field_name"/> 

    </t>

</t>

Make sure you load the new filed in your js file. Hope this helps you!!! :)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 24
2200
0
ส.ค. 24
1790
1
ส.ค. 24
2844
0
ก.ค. 24
1435
0
พ.ค. 23
2321