Odoo Help


How to transform "Delivery Orders" form as "Invoice" form ?

Anne-Sylvie Burri
on 5/29/13, 6:21 AM 837 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

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/29/13, 6:21 AM
Seen: 837 times
Last updated: 3/16/15, 8:10 AM