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 select multiple products in an order lines of Po/So order forms in odoo8?

on 2/8/16, 2:15 AM 267 views

What i am trying to achieve here is on clicking Add an item ...popup should come up listing all products with checkboxes...i want to select multiple products and that should get added in order lines. 

I changed order_line field to many2many.

#'order_line': fields.many2many('sale.order.line', 'order_id', 'Order Lines', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, copy=True),

After that it lists all order lines.

Then added following line in sale_order_line class

'm2m_prod': fields.many2many('product.product', 'm2m_table', 'order_lineid', 'product_id', 'M2M products'),But still it lists all order lines.

do we have to modify sale_view.py also?

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: 2/8/16, 2:15 AM
Seen: 267 times
Last updated: 2/8/16, 2:17 AM