İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
1544 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç

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

En İyi Yanıt

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
Vazgeç

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