Odoo Help


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

Petre Chitashvili
on 5/10/13, 5:06 AM 1,473 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

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


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