Odoo Help

1

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

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

JMB

0
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'
          }

stock_move()

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 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

0 follower(s)

Stats

Asked: 5/29/13, 6:21 AM
Seen: 555 times
Last updated: 3/16/15, 8:10 AM