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 transform "Delivery Orders" form as "Invoice" form ?

Anne-Sylvie Burri
on 5/29/13, 6:21 AM 507 views

Hi everybody,

I'm trying to transform "Delivery Orders" form to have the following fields in delivery orders line form :

  • unit price
  • discount
  • tax
  • price

Someone could help me ?

Many thanks in advance.


Clément THOMAS
On 5/29/13, 6:49 AM

You must add these files to stock.move model (fields RELATED, with sale_line_id), and add it on the view with view inheritance.

example :

class stock_move(osv.osv):
          _inherit = 'stock.move'
          _columns = {
            'discount':fields.related('sale_line_id','discount',string='discount', type='float'


You can find many example of view inheritance in documentation

Thanks for your answer. I'll try it and give you a feedback.

J.-M. Burri - Bureau ing.-conseils informatique, Anne-Sylvie Burri
on 5/30/13, 4:38 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/29/13, 6:21 AM
Seen: 507 times
Last updated: 3/16/15, 8:10 AM