[FIX] sale: show payment term note on customer portal preview

Description:
There is a discrepancy between the printed sale order report and the
customer preview when it comes to displaying the Payment Terms. On the
SO report, Odoo prints the 'note' field, whereas on the preview, Odoo
only displays the 'name' field.

Desired behavior after PR is merged:
Customer preview now matches the printed report by displaying the
payment_term.note field as well

opw-3790997

closes odoo/odoo#157926

X-original-commit: b25a119e8e3d4719a33bfbe69870f6f995488e6c
Signed-off-by: Valentin Chevalier <vcr@odoo.com>
Signed-off-by: Joel Bluemel (jobl) <jobl@odoo.com>
This commit is contained in:
jobl
2024-03-18 16:22:40 +00:00
parent 9dde5a64e9
commit 327d35f66c
+1 -1
View File
@@ -659,7 +659,7 @@
<section t-if="sale_order.payment_term_id" class="mt-4">
<h4 class="">Payment terms</h4>
<hr class="mt-0 mb-1"/>
<span t-field="sale_order.payment_term_id"/>
<span t-field="sale_order.payment_term_id.note"/>
</section>
</div>
</template>