Skip to content

Commit

Permalink
[FIX] sale: invoices not displayed on SO portal
Browse files Browse the repository at this point in the history
task-3584770

closes odoo#141276

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
  • Loading branch information
Feyensv committed Nov 6, 2023
1 parent b7335cb commit 844dbbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sale/views/sale_portal_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@
<div t-field="sale_order.partner_shipping_id" t-options='{ "widget": "contact", "fields": [ "name", "address"]}'/>
</span>
</div>
<div id="sale_invoices" t-if="invoices and state in ['sale', 'cancel']">
<t t-set="invoices" t-value="sale_order.invoice_ids.filtered(lambda i: i.state not in ['draft', 'cancel']).sorted('date', reverse=True)[:3]"/>
<t t-set="invoices" t-value="sale_order.invoice_ids.filtered(lambda i: i.state not in ['draft', 'cancel']).sorted('date', reverse=True)[:3]"/>
<div id="sale_invoices" t-if="invoices and sale_order.state in ['sale', 'cancel']">
<div class="col-12 col-lg-5 mb-4">
<h5 class="mb-1">Invoices</h5>
<hr class="my-0"/>
Expand Down

0 comments on commit 844dbbc

Please sign in to comment.