Odoo Help


Could I display the return amount on the printed invoice?

Pascal Tremblay
on 12/1/15, 10:14 AM 1,177 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 3 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;}"/>




About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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