Odoo Help


from many2many field to sale order??

Diego Calzadilla
on 10/10/13, 3:48 AM 1,065 views

Hi guys, I have done a wizard using this many2many field:

'products': fields.many2many('product.product', 'product_rel', 'product', 'wizard_id', 'Products')

I did this, so that I can get a form view with the option "Add" and make a selction of products which results to be a tree view inside of my form, everything goes fine here, what I need to do, is to take this selection to sale.order, for this I have checked the action_invoice method of POS, but what I can see is that this function takes fields from the object pos.order and get them to account.invoice, the big difference between this and my module is the data in my module is stored in a many2many field and not in an object like in POS, so my question is ...How can I access the data stored in the many2many field and then take them to sale order??

Thanks in advance!!

Hi Diego, Can u please post your exemple, i need to create a new Wizard wich display the history of sale by partner for a given product. Thank u very much :)

abdelwahed chiheb
on 3/19/14, 11:34 AM

diego.mor13.dh@gmail.com so that you can contact me, I mean it's been a while since I posted this, and I don't remember well how I solved it but I can send you my module if you want, greetings!!

MEXYTUL, Diego Calzadilla
on 3/19/14, 2:44 PM

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: 10/10/13, 3:48 AM
Seen: 1065 times
Last updated: 3/16/15, 8:10 AM