Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Could I display the return amount on the printed invoice?

Pascal Tremblay
on 12/1/15, 10:14 AM 554 views

Hello there,

For this point of sale transaction, we return an amount of 0,02 $ to customer because he paid with 115 $.

According to you, could I display this amount of 0,02 $ on the invoice?

What should be my approach?

Thanks for your tips.



Pascal Tremblay

--Pascal Tremblay--
| 5 2 7
Alma, Canada
--Pascal Tremblay--

Pascal Tremblay
On 12/9/15, 7:59 PM

Here is our answer.

See at the bottom of this invoice :

Here is the code to put in the file report_invoice_document_custom.xml :

        <span t-if="o.payment_ids">

                <span t-foreach="o.payment_ids" t-as="l">

                        <p t-if="l.credit != 0.00">

                                <strong>Paiment du client : <![CDATA[ &nbsp; ]]></strong>

                                <span t-field="l.credit" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.currency_id&quot;}"/>


                        <p t-if="l.debit != 0.00">

                                <strong>Argent rendu au client : <![CDATA[ &nbsp; ]]></strong>

                                <span t-field="l.debit" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.currency_id&quot;}"/>




Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 12/1/15, 10:14 AM
Seen: 554 times
Last updated: 12/9/15, 8:04 PM