コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4494 ビュー

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
2170
0
8月 24
1765
1
8月 24
2797
0
7月 24
1404
0
5月 23
2295