Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
163 Vizualizări

Odoo 17 Ent.

In a previous assistance request (same title but without the '(follow-up)', I obtained assistance in learning how to use comments on an invoice report so that the footnote information did not print on the reports (more specifically, the Payment Communication information, showing our bank account information, would not show). 

I thought that I had resolved this and it did seem to work at the time but, now it doesn’t.  Apparently, I don’t fully understand how to use the comment (‘#’) in the programming code correctly.

In the report_invoice_document I inserted 'one' comment as follows:

---------

# <p name="payment_communication">

    Payment Communication: <span class="fw-bold" t-field="o.payment_reference">INV/2023/00001</span>

<t t-if="o.partner_bank_id">

              <br/>

     on this account: <span t-field="o.partner_bank_id" class="fw-bold"/>

               </t>

      </p>

---------

At the bottom of my invoice, it prints something (I don’t want to see) like this:

---------

#

Payment communications: INV/2024/12/0005

on this account:      999999999 – First Citizens Bank

---------

When I put in a comment (#) before 'each' of the program code lines, I get a result that looks like this:

---------

#

# Payment Communication: INV/2024/12/0006 # #

# on this account: 9999999995101 – First Citizens Bank # #

----------

Note that the footer is appearing on 'new' invoices (I'm not just trying to make it work on a previously created invoice).

Although I don’t think that it’s related to the problem described above, I should note that when I create an invoice and then press the Preview button, I’m getting a “500 Internal Server Error”.

Your assistance in resolving this footer problem would be very much appreciated.

 

Imagine profil
Abandonează
Autor Cel mai bun răspuns

While not really an answer to my previous support query, today I simply deleted the 'Recipient Bank' information found in the 'Other Info' tab of the invoice (Odoo v17) and that deleted the line item that I'd been trying to eliminate through the report coding.  So simple, it would seem.

Imagine profil
Abandonează