Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to change the structure of GL entries generated by Sales Invoice?

Petre Chitashvili
on 5/10/13, 5:06 AM 1,004 views


I would like to change the default structure for GL entries that get generated by Sales Invoices. Currently, Sales Invoice posts the following entries into the GL: Dr(AccountA) Eur 100, Dr(AccountB) Eur 200, Cr(AccountC) Eur 300

whereas I would like to change it to Dr(AccountA1) Eur 50, Dr(AccountA2) Eur 50, Dr(AccountB) Eur 200, Cr(AccountC) Eur 300

Please suggest how this type of change can be made.

Thanks. Petre

On 5/10/13, 5:24 AM

You can override 'finalize_invoice_move_lines(cr, uid, invoice, move_lines)' that is a hook method to be overridden in additional modules to verify and possibly alter the move lines to be created by an invoice, for special cases.

You can find this function in account module.


Thanks filsys for your answer.

DIGY LLC, Petre Chitashvili
on 5/10/13, 6:24 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 5/10/13, 5:06 AM
Seen: 1004 times
Last updated: 3/16/15, 8:10 AM