Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3973 Visualizzazioni

Greetings,

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

Avatar
Abbandona
Risposta migliore

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,

Avatar
Abbandona
Autore

Thanks filsys for your answer.