Skip to Content
Menu
This question has been flagged
3 Replies
1987 Views

(For Odoo 17 Enterprise).

My invoices include a footer that says 

    Payment Communication: INV/2024/<number>

    on this account: 99999999999 - Bank Name

I want to delete the 2nd line ("on this...Name").

I found (AI) instructions that say:

    To unselect the Show in Invoices Footer option for a bank account in Odoo

    you can follows these steps:

    1. Go to Accounting

    2. Select Configuration

    3. Select Bank Accounts

    4. Unselect the Show in Invoices Footer option for the bank account you want to      change.

When I follow these instructions the closest that I can find is:

Banks

  Add a Bank Account

  Reconciliation Models

  Online Synchronization

There does not appear to be "Bank Accounts" and the Add a Bank Account does not seem to let you edit an existing one.

Guidance on how to unselect the show in invoices option would be appreciated.

Avatar
Discard
Best Answer

Hai Scott Bellows,

To remove the respective item from your invoice, go to Settings search for Developer Tools you will find a button "Activate the developer mode". Once you activate the developer mode go to Settings > Technical > User Interface > Views and search for report_invoice_document and select the record with "Inherited View" field empty(because it will be parent view). Here you can find the code for the invoice report under "Architecture", then search for the line which which you need to remove( the code with keyword "on this account" or similar). Now you have to comment the code you found as shown in below image.


If you couldn't find the code in here. Go to "Inherited View" tab and click on each record you will see the inherited views of the invoice report. Here also follow the same steps, search for code and if found comment it.

Once you find and commented the code you will be able to print new invoices without the line. But remember this will be applied only for new invoices. 

and Please be careful while editing the code because it may affect your invoice report.

Avatar
Discard
Best Answer

I have tried to make an Inherited View to exclude these lines to avoid it breaking after an update, but cannot seem to get it right.

Does anyone have an idea on how to make that work?

Avatar
Discard
Author Best Answer

Amal,

My sincere thanks for your response.  I found the section as shown in your image but it gave me an error (Validation Error...Error while parsing or validating view:...Double hyphen within comment: <!-- <div class=mb-3" t-if="o.move_type in ('out_invo, line 250, column 35"

Not seeing a double hyphen (--) after the comment (<!--) and understanding that Odoo is written in Python, I looked up how to write a comment in that language and it said to use a '#', so I did and that seems to have done the trick.  Not withstanding, this final solution would not have been possible without your insight...many thanks.

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
1614
1
Dec 23
1759
1
Apr 21
7136
6
Jan 24
14724
1
Jul 16
3643