تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
1637 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال

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

أفضل إجابة

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!

الصورة الرمزية
إهمال

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