跳至内容
菜单
此问题已终结
2 回复
4498 查看

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!!! :)

形象
丢弃
相关帖文 回复 查看 活动
1
12月 24
2172
0
8月 24
1766
1
8月 24
2801
0
7月 24
1406
0
5月 23
2297