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
|Asked: 3/14/16, 5:41 AM|
|Seen: 270 times|
|Last updated: 3/16/16, 7:28 AM|