Odoo Help

Welcome!

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.

0

Sale.Order.Line Position to Invoice.Line Position

By
wizardz
on 3/9/16, 7:47 AM 359 views

I need a way to create on the sale.order.lines a position column, and on the invoice .line too.

Then when I create from a sale.order a invoice, the position (new field) should give the value to the new invoice field.

How can I do that, or is there any modul that can make this?


0

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


Ahmed M.Elmubarak
On 3/9/16, 8:33 AM

Hello,

You can add your new column by _inherit the model.

After adding your fields, you need to override _prepare_order_line_invoice_line to create the invoice line values.

Hope this will help


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

1 follower(s)

Stats

Asked: 3/9/16, 7:47 AM
Seen: 359 times
Last updated: 3/9/16, 8:33 AM