Skip to Content
Menu
This question has been flagged
2 Replies
1299 Views

When will fill in the quantity, everything seen fine until we print PDF or Preview

Instead of showing 1.00 in quantity column, it shows 1.00 units. 

How could we remove the word "units"? in Odoo17

Avatar
Discard
Best Answer

Hi,

<div class="row">
   <div class="col-12 text-muted">
       Quantity:
<t t-out="record.product_uom_qty.value"/> <t t-out="record.product_uom.value"/>
   </div>
</div>

This is the Actual template value of the Qty of the Product you can override the template and change the t-out value into <div class="row">
   <div class="col-12 text-muted">
       Quantity:
<t t-out="record.product_uom_qty.value"/>
   </div>
</div>
we can remove the UOM Value under the Report.


Hope it helps

Avatar
Discard

Thank you so much for your help. I get it. But it's difficult to locate this template.

Best Answer

To remove the word “units” from the quantity column in Odoo17, you can try the following steps:


Go to Settings and select Technical.

Select Reports and then Reports again.

Search for the report you want to modify and click on it.

Click on the Edit button.

Click on the Add a section button and select Fields.

Select the Quantity field and click on the Remove button.

Click on the Save button to save your changes.

This should remove the word “units” from the quantity column in your report. I hope this helps!

Avatar
Discard

Thank you for sharing. Unfortunately, I can't find the edit button and the field. I try my best to find it out.