Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4508 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

Hi shyam,

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 24
2176
0
srp 24
1772
1
srp 24
2810
0
čvc 24
1411
0
kvě 23
2304