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.


[v8]How to show delivered quantity of products in sale order lines

on 3/21/15, 8:54 PM 463 views

Searched around for modules, i've found dx_sale_line_delivered which works perfect for v6.1 and v7(with minor changes)
But for v8, since the new WMS introduced, line.move_ids has been removed? Code extracted from dx_sale_line_delivered:

class sale_order_line(osv.osv):

_inherit = 'sale.order.line'

def _delivered_qty(self, cr, uid, ids, field_name, arg, context=None):

move_obj = self.pool.get('stock.move')

res = {}

for line in self.browse(cr, uid, ids, context=context):

qty = 0

for move in line.move_ids:

if move.state == 'done':

qty += move.product_qty

res[line.id] = qty

return res


Any advice on how to migrate this module to v8? Thanks   



| 5 4 7
Lodz, Poland

On 3/24/15, 4:24 PM

See this post and proposed solution. I tested. It works

It shows picked rate of sale.order, not sale.order.line. picked rate for whole order is merely useless for multiple lines order. Thanks anyway.

on 3/25/15, 9:02 PM

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)


Asked: 3/21/15, 8:54 PM
Seen: 463 times
Last updated: 3/24/15, 4:24 PM