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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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'>
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 24
|
763 | ||
|
1
Apr 24
|
457 | ||
|
3
Apr 23
|
4743 | ||
|
1
Nov 22
|
1311 | ||
|
3
May 22
|
1312 |
Did you include the xml file in the manifest?