Hello,
My product price has 10 decimal digits but I want it get printed with 2 digits only (when printing invoices, quotations).
Could you please help?
0
1 Answer
Best Answer
Firstly you must find the corresponding QWeb templates for invoice and quotation/sale order within Settings > Technical > User Interface > Views.
QWeb template for Quotation / Sales Order is report_saleorder_document
QWeb template for Invoice is report_invoice_document
Now, within report_saleorder_document's Architecture tab, find
<span t-field="l.price_unit"/>
And replace with
<span t-field="l.price_unit" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
Within report_invoice_document's Architecture tab, find
<span t-field="l.price_unit"/>
And replace with
<span t-field="l.price_unit" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
You are done now. Is that just simple, right?