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.


Set order of detail lines in picking (II)

on 1/31/14, 6:11 AM 501 views

I asked this before, but now I need this deadly.

I want the same order or products in the sales ordere and delivery note. Right now I cannot determine what order is used in the delivery note. Sometimes it is the same order sometimes not.

I break it down that stock.move is ordered by date and id and I changed this with a customization module:

from osv import osv

class stock_move(osv.osv):
    _name = 'stock.move'
    _inherit = 'stock.move'
    _order = "id"


And the inner movements are on screen ordered as the sales document. When confirming a sale the moves are created by order_line.sequence.

I try the same for stock_picking but nothing changes.

Any idea how to change the order, or at least at printing time ?

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: 1/31/14, 6:11 AM
Seen: 501 times
Last updated: 3/16/15, 8:10 AM