Odoo Help

0

Description line on invoices, odoo V8

By
Roberto Barreiro
on 10/20/15, 7:30 AM 725 views

Hello all! I'm trying to automatically add a line on customer invoices, with some info of the sale order, but I don't find the way to do it. What I want to do in invoice lines, it's to add a line before the first line of all orders. This line will have only some info in the description field, so the result must be something like this:

description for first sale order (it will be composed with the order number, and a field I have added to sale orders)

lines of first sale order

description for second sale order

lines of second sale order


I need to know which object and wich definition are responsible for adding lines in the customers invoices. Thanks in advice.

1

Hello Roberto,

Following are the methods in Sale module to create invoice:

action_invoice_create is the method in sale module (sale / sale.py) which creates invoice and invoice_line_create, _prepare_order_line_invoice_line creates invoice lines.

These all are the methods which you have to override and make changes according to your requirement.

Hope this will help you.

Thank you for your answer! This is just what I'm looking for.

Roberto Barreiro
on 10/20/15, 10:02 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.

Register

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

1 follower(s)

Stats

Asked: 10/20/15, 7:30 AM
Seen: 725 times
Last updated: 10/20/15, 10:00 AM