Hello Everyone,
I am trying to customize the POS receipt in Odoo 19.
Current default receipt output:
Pizza Vegetarian
$57.50 / Units
My requirement is:
Pizza Vegetarian
MRP ₹60 @ ₹50/unit
Explanation:
mrp is a custom field added in product.template
list_price (Sales Price) is ₹50
I want to:
Remove the default “price per unit” line from the POS receipt
Show custom text below the product name using MRP and Sales Price
I tried overriding the POS receipt template using this XML:
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<!-- POS Receipt Order Line -->
<t t-name="custom_pos_receipt.Orderline"
t-inherit="point_of_sale.Orderline"
t-inherit-mode="extension">
<!-- REMOVE DEFAULT UNIT PRICE LINE -->
<xpath expr="//div[contains(@class,'price-per-unit')]" position="replace">
</xpath>
<!-- ADD CUSTOM MRP LINE -->
<xpath expr="//div[contains(@class,'product-name')]" position="after">
<div style="
font-size:12px;
color:#555;
margin-top:2px;
font-weight:500;
">
MRP
<t t-esc="props.line.product.mrp"/>
@
<t t-esc="props.line.product.lst_price"/>
/unit
</div>
</xpath>
</t>
</templates>
Manifest:
'assets': {
'point_of_sale._assets_pos': [
'pos_receipt_custom/static/src/xml/pos_receipt.xml',
],
},
But POS crashes with errors like:


Thanks in advance.

Hello
1. Check "pos_receipt_custom" is your module name or not.
Let me know here.
Thanks
actually i defined mrp in odoometer_price_extn(product.product),i have not added custom field in pos loader,i just want to replace cureent price unit with mrp-value at salesprice after product name,can you share complete code,it would really help full
screen shot image is updated
i want like this-mrp:60 @ 50/unit(after product name by repacing current unitprice/unit)
So you wnat to replace this line by your Custom field(mrp) price right?
yes i want to replace line with this sentence like-mrp:60 @ 50/unit(60 is mrp and 50 is selling price)