Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
i'm completely new to odoo and i'd like some help for something i'm doing.
I extended the product.product model, and added a m2m relation with the class itself, so a product can be "linked" to another product.
Now, i would like to be able to add those "linked products" to my sale_order when i add the "master" product.
I extended the sale_order class and i'm trying to redefine the method _create, but i don't know what to do next. I can't iterate on self.order_line :/
def create(self, vals):
for line in self.order_line:
print("add new line")
Thanks a lot for your help!
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 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/16/15, 8:03 AM|
|Seen: 351 times|
|Last updated: 10/16/15, 9:48 AM|