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?
Welcome!
This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
Format product price in Qweb
This question has been flagged
1
Reply
6684
Views
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?