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.
Hi, in Sale, when i'm on a quotation, I click to add an item, i choose my product in the list (and i display prints in my code).
But i'm wondering if those are good ? Because their values disturbs me and I'm wondering too if it should not rather display other thing
print "2) self.product_id =",self.product_id
print "3) donnee =",donnee
Thanks in dvance.
2) self.product_id = product.product(7328,)
3) donnee = product.product(product.product(7328,),)
JFI, Here you have already browsed record of the product(self.product_id).
You can access all the attributes of the product like for
sale price: self.product_id.list_price
No need to browse it again(donnee=self.env['product.product'].browse(self.product_id))
And for the same result of print, just put 'id' in your parameter
Here donnee and self.product_id both are same
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: 3/14/16, 5:41 AM|
|Seen: 369 times|
|Last updated: 3/16/16, 7:28 AM|