Odoo Help


How to select multiple products in an order lines of Po/So order forms in odoo8?

on 2/8/16, 2:15 AM 666 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?

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

1 follower(s)


Asked: 2/8/16, 2:15 AM
Seen: 666 times
Last updated: 2/8/16, 2:17 AM