I want to replace the env.pos.format_currency_no_symbol(line.price_display_one) line inside the OrderReceipt.xml (see image below)
In my custom module, the xpath expr is:
But the intended change did not took effect.
I want to replace the env.pos.format_currency_no_symbol(line.price_display_one) line inside the OrderReceipt.xml (see image below)
In my custom module, the xpath expr is:
But the intended change did not took effect.
Hello, JTY
The way you inherit the template is correct.
Please find code in comment.
I hope This will help you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
So, make sure you define it in the manifest as follows (for odoo 15):
'assets': {
'web.assets_qweb': [
'module/static/src/xml/OrderReceipt.xml',
],
},
And also make sure your xml file should be in “/static/src/xml” path. If everything is ok then upgrade the module.
In pos receipt there is no OrderLineReceipt to inherit.
you can use the div[@class('orderlines') and replace what you want to replace as following
"1.0" encoding="UTF-8"?> "receipt_template" inherit_id="point_of_sale.template" xml:space="preserve">
"OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1"> "//div[@class('pos-receipt-contact')]" position="inside"> 'receipt.client'>
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
1
нояб. 25
|
1805 | |||
|
1
мая 25
|
5563 | |||
|
1
мая 24
|
5248 | |||
|
1
апр. 24
|
4799 | |||
|
3
апр. 23
|
9993 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Did you include the xml file in the manifest?