Odoo Help

0

0
1 Answer
0
Avatar

Pascal Tremblay

--Pascal Tremblay--
1899
| 6 3 10
Alma, Canada
--Pascal Tremblay--


Pascal Tremblay
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>

                        <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;}"/>

                        </p>

                </span>

        </span>

Ask a Question
Writer
Keep Informed
1 follower(s)
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.

Register
Odoo Training Center

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

Test it now