[FIX] account.invoice report: show customer description of payment term
authorOlivier Dony <odo@openerp.com>
Wed, 12 Nov 2014 17:50:38 +0000 (18:50 +0100)
committerOlivier Dony <odo@openerp.com>
Wed, 12 Nov 2014 17:50:38 +0000 (18:50 +0100)
The payment term description (note) is meant
to be shown to customers. Restore it in the
default invoice report, as it was in 7.0.
If empty, assume the payment term is meant
to be hidden from customer, and do not show
anything.
By default the description includes the name
of the payment term, so no need to keep both.

addons/account/views/report_invoice.xml

index a250eb9..4fe4e3b 100644 (file)
                 <strong>Comment:</strong>
                 <span t-field="o.comment"/>
             </p>
-            <p t-if="o.payment_term">
+            <p t-if="o.payment_term.note">
                 <strong>Payment Term:</strong>
-                <span t-field="o.payment_term"/>
+                <span t-field="o.payment_term.note"/>
             </p>
             <p t-if="o.fiscal_position">
                 <strong>Fiscal Position:</strong>