Odoo Help

Welcome!

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.

0

Adding Multiple products in Sales order line?

By
Hamza rana
on 6/17/16, 3:26 PM 321 views

Hi there, I have been stuck on this for days now, and want to get it over with. When I go to creating a new Sales quotation, I have to enter/select products one by one. I have so many products and want to select them all at once.

I googled it, and found a thread of using many2many widget. Now I went to the views from Technical tab in Developers mode, and added the many2many code under product_id. But Either it gives an error when I open the Sales order, or the sales order lines are gone. 

Kindly help me out with this. All I wanna do is to be able to select multiple products when creating sales orders.

Cheers.

Odoo v9 (Enterprise).

can you provide your code after update. (the view)

And please, provide the error ...

Jérémy Kersten (jke)
on 6/17/16, 3:43 PM
0
Hamza rana
On 6/17/16, 3:51 PM

Thanks for the quickest reply ever Jeremy.

Actually I don't know if I entered the code correctly in sales.order form. I entered it just below where it said field name = product_id.


'product_id' : fields.many2many('object.name', string='Details'),

<field name="product_id" widget="many2many_tags" />


Can you please tell me where should I enter this?
Also if it's not correct, please let me know the correct code for entering  just to select multiple products at once.

Thanks.

you have probabaly not read all the thread ... because you will see at bottom (https://www.odoo.com/forum/help-1/question/how-to-add-multiple-products-on-single-click-in-an-order-lines-of-po-so-order-forms-in-openerp-67725#answer_69383) that seems to be a better solution.

Jérémy Kersten (jke)
on 6/17/16, 4:05 PM

I am not able to work on the thread you gave me. I already read it all. I can't find a way to change many2one relation to many2many no matter how I try.

Can you please guide me how to do it with the python coding? Thanks man.

Hamza rana
on 6/17/16, 5: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

2 follower(s)

Stats

Asked: 6/17/16, 3:26 PM
Seen: 321 times
Last updated: 6/17/16, 3:51 PM