Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4502 Представления

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
2173
0
авг. 24
1768
1
авг. 24
2802
0
июл. 24
1407
0
мая 23
2299